ecorder

package module
v0.0.0-...-cc2a164 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

README

ecorder

Order interface with CREST and an API

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

func NewESIHydrator() (Hydrator, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL