Documentation
¶
Index ¶
- Variables
- func ExpirySubscriber(ch <-chan *redis.Message)
- func FetchAccessToken(callerID int32, characterID int32, object model.CachedObject) error
- func FetchCharacter(callerID int32, characterID int32, object model.CachedObject) error
- func FetchCorporation(callerID int32, corporationID int32, object model.CachedObject) error
- func FetchCorporationAssets(callerID int32, corporationID int32, object model.CachedObject) error
- func FetchCorporationIndustryJobs(callerID int32, corporationID int32, object model.CachedObject) error
- func FetchMarketPrices() (prices map[int32]model.CachedObject, err error)
- func FetchPrices(regionID int, types []int32) (prices map[string]model.Price, err error)
- func FetchSystemCostIndices() (indices map[int32]model.CachedObject, err error)
- func FetchType(callerID int32, typeID int32, object model.CachedObject) error
- func GetAccessToken(characterID int32, accessToken *model.AccessToken) error
- func GetAccessTokenForCorporation(corporationID int32, accessToken *model.AccessToken) error
- func GetCachedObject(hashKey string, callerID int32, objectID int32, object model.CachedObject, ...) (err error)
- func GetCharacter(characterID int32, character *model.Character) error
- func GetCorporation(callerID int32, corporationID int32, corporation *model.Corporation) error
- func GetCorporationAssets(callerID int32, corporationID int32, jobs *model.CorporationAssets) error
- func GetIndustryJobs(callerID int32, corporationID int32, jobs *model.IndustryJobs) error
- func GetMarketPrice(typeID int32) (price *model.MarketPrice, err error)
- func GetPrices(regionID int, types []int32) (prices map[int32]model.Price, err error)
- func GetSystemCostIndex(solarSystemID int32) (index *model.SystemCostIndex, err error)
- func InitCache(redisAddr string) (err error)
- func InitSSO(clientID string, secretKey string, redirectURI string) bool
- func ReadCachedObject(hashKey string, object model.CachedObject) error
- func WriteCachedObject(object model.CachedObject) error
- func WriteCachedObjects(objects map[int32]model.CachedObject) error
- type FetchFuncType
- type ProductTypeResult
- type ProfitValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ESI *esi.APIClient
ESI is the ESI client
View Source
var SSO sso.SingleSignOn
Functions ¶
func ExpirySubscriber ¶
func FetchAccessToken ¶
func FetchAccessToken(callerID int32, characterID int32, object model.CachedObject) error
func FetchCharacter ¶
func FetchCharacter(callerID int32, characterID int32, object model.CachedObject) error
func FetchCorporation ¶
func FetchCorporation(callerID int32, corporationID int32, object model.CachedObject) error
func FetchCorporationAssets ¶
func FetchCorporationAssets(callerID int32, corporationID int32, object model.CachedObject) error
func FetchCorporationIndustryJobs ¶
func FetchCorporationIndustryJobs(callerID int32, corporationID int32, object model.CachedObject) error
func FetchMarketPrices ¶
func FetchMarketPrices() (prices map[int32]model.CachedObject, err error)
func FetchPrices ¶
func FetchSystemCostIndices ¶
func FetchSystemCostIndices() (indices map[int32]model.CachedObject, err error)
func GetAccessToken ¶
func GetAccessToken(characterID int32, accessToken *model.AccessToken) error
func GetAccessTokenForCorporation ¶
func GetAccessTokenForCorporation(corporationID int32, accessToken *model.AccessToken) error
func GetCachedObject ¶
func GetCachedObject(hashKey string, callerID int32, objectID int32, object model.CachedObject, funcType FetchFuncType) (err error)
func GetCorporation ¶
func GetCorporation(callerID int32, corporationID int32, corporation *model.Corporation) error
func GetCorporationAssets ¶
func GetCorporationAssets(callerID int32, corporationID int32, jobs *model.CorporationAssets) error
func GetIndustryJobs ¶
func GetIndustryJobs(callerID int32, corporationID int32, jobs *model.IndustryJobs) error
func GetMarketPrice ¶
func GetMarketPrice(typeID int32) (price *model.MarketPrice, err error)
func GetSystemCostIndex ¶
func GetSystemCostIndex(solarSystemID int32) (index *model.SystemCostIndex, err error)
func ReadCachedObject ¶
func ReadCachedObject(hashKey string, object model.CachedObject) error
func WriteCachedObject ¶
func WriteCachedObject(object model.CachedObject) error
func WriteCachedObjects ¶
func WriteCachedObjects(objects map[int32]model.CachedObject) error
Types ¶
type FetchFuncType ¶
type FetchFuncType func(callerID int32, objectID int32, object model.CachedObject) error
type ProductTypeResult ¶
type ProductTypeResult struct { TypeID int `json:"typeID" db:"typeID"` TypeName string `json:"name"` CategoryID int `json:"categoryID"` Profit struct { PerDay ProfitValue `json:"perDay"` } `json:"profit"` Costs struct { Total float64 `json:"total"` } `json:"costs"` HasRequiredSkills bool `json:"hasRequiredSkills"` }
func GetProductTypes ¶
func GetProductTypes(options *db.SearchOptions, builder model.Character) ([]ProductTypeResult, error)
type ProfitValue ¶
Click to show internal directories.
Click to hide internal directories.