Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error for no hydration source ErrorNoHydrationSource = errors.New("Can't hydrate a missing cache order") // ErrorUnfetchableType defines an unfetchable type or region ErrorUnfetchableItem = errors.New("Can't fetch this type or region since its not one known to me") )
Functions ¶
This section is empty.
Types ¶
type Hydrator ¶
type Hydrator interface {
OrdersForType(typeid int, regionid int) ([]eccore.MarketOrder, error)
OrdersForRegion(regionid int) ([]eccore.MarketOrder, error)
}
func NewESIHydrator ¶
NewCrestHydrator bootstraps an appropiate CREST based order hydration source.
type OrderCache ¶
type OrderCache struct {
Hydrator Hydrator
// contains filtered or unexported fields
}
OrderCache represents a caching order provider, with a memcache client or mock and an optional Hydrator interface for cache misses
func (*OrderCache) OrdersForType ¶
func (c *OrderCache) OrdersForType(typeid int, regionid int) ([]eccore.MarketOrder, error)
Click to show internal directories.
Click to hide internal directories.