Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltRepository ¶
type BoltRepository struct {
// contains filtered or unexported fields
}
type CacheFirstRepository ¶
type CacheFirstRepository struct {
// contains filtered or unexported fields
}
type ESIRepository ¶
type ESIRepository struct {
// contains filtered or unexported fields
}
type Order ¶
type Order struct {
FetchDate time.Time
Duration int32 `json:"duration"`
IsBuyOrder bool `json:"is_buy_order"`
Issued time.Time `json:"issued"`
LocationId int64 `json:"location_id"`
MinVolume int32 `json:"min_volume"`
OrderId int64 `json:"order_id"`
Price float64 `json:"price"`
Range string `json:"range"`
SystemId int32 `json:"system_id"`
TypeId int32 `json:"type_id"`
VolumeRemain int32 `json:"volume_remain"`
VolumeTotal int32 `json:"volume_total"`
}
type Orders ¶
type Orders []*Order
type Repository ¶
type Repository interface {
Get(typeId, regionId int) (Orders, error)
Upsert(typeId int, orders Orders) error
}
func NewBoltRepository ¶
func NewCacheFirstRepository ¶
func NewCacheFirstRepository(cacheRepository, esiRepository Repository) Repository
func NewESIRepository ¶
func NewESIRepository(client *esi.Client) Repository
Click to show internal directories.
Click to hide internal directories.