Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiTransport ¶
type ApiTransport struct {
// contains filtered or unexported fields
}
ApiTransport custom transport to chain into the HTTPClient to gather statistics.
type Contract ¶
type Contract struct { Touched time.Time Contract FullContract }
Contract wrapper to find last touch time. Cast structure to market
type ContractChange ¶
type ContractChange struct { ContractId int32 `json:"contract_id"` LocationId int64 `json:"location_id"` Expired bool `json:"expired,omitempty"` DateExpired time.Time `json:"date_expired,omitempty"` Changed bool `json:"-"` Bids []esi.GetContractsPublicBidsContractId200Ok `json:"bids,omitempty"` Price float64 `json:"price,omitempty"` Type_ string `json:"type,omitempty"` TimeChanged time.Time `json:"time_changed,omitempty"` }
ContractChange Details of what changed on an contract Really only price and bids can change
type FullContract ¶
type FullContract struct { Contract esi.GetContractsPublicRegionId200Ok `json:"contract"` Items []esi.GetContractsPublicItemsContractId200Ok `json:"items,omitempty"` Bids []esi.GetContractsPublicBidsContractId200Ok `json:"bids,omitempty"` }
FullContract adds all three esi returns together
type MarketWatch ¶
type MarketWatch struct {
// contains filtered or unexported fields
}
MarketWatch provides CCP Market Data
func NewMarketWatch ¶
func NewMarketWatch(refresh, tokenClientID, tokenSecret string) *MarketWatch
NewMarketWatch creates a new MarketWatch microservice
func (*MarketWatch) Run ¶
func (s *MarketWatch) Run() error
Run starts listening on port 3005 for API requests
type Message ¶
type Message struct { Action string `json:"action"` Payload interface{} `json:"payload"` }
Message wraps different payloads for the websocket interface
type Order ¶
type Order struct { Touched time.Time Order esi.GetMarketsRegionIdOrders200Ok }
Order wrapper to find last touch time. Cast structure to market
type OrderChange ¶
type OrderChange struct { OrderID int64 `json:"order_id"` LocationId int64 `json:"location_id"` TypeID int32 `json:"type_id"` VolumeChange int32 `json:"volume_change,omitempty"` VolumeRemain int32 `json:"volume_remain,omitempty"` Price float64 `json:"price"` Duration int32 `json:"duration,omitempty"` IsBuyOrder bool `json:"is_buy_order,omitempty"` Issued time.Time `json:"issued,omitempty"` Changed bool `json:"-"` TimeChanged time.Time `json:"time_changed"` }
OrderChange Details of what changed on an order
Click to show internal directories.
Click to hide internal directories.