Documentation ¶
Index ¶
- Constants
- type Instance
- func (i *Instance) FireAll()
- func (i *Instance) FireOne(econItem SteamApiItemAsset, shopItem WebShopItem)
- func (i *Instance) GetEconomyResponse() (result SteamApiResponse, err error)
- func (i *Instance) GetShopState() (wss WebShopState)
- func (i *Instance) Run()
- func (i *Instance) SetHook(econItem SteamApiItemAsset, shopItem WebShopItem) (h discordSender.Hook)
- type SteamApiAssetClass
- type SteamApiItemAsset
- type SteamApiResponse
- type SteamApiResult
- type WebShopItem
- type WebShopState
Constants ¶
View Source
const ( SteamApiEconomyBase = "https://api.steampowered.com/ISteamEconomy/GetAssetPrices/v1/" SteamRustGameId = "252490" SteamWebShop = "https://store.steampowered.com/itemstore/252490/browse/?filter=All" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) FireOne ¶
func (i *Instance) FireOne(econItem SteamApiItemAsset, shopItem WebShopItem)
func (*Instance) GetEconomyResponse ¶
func (i *Instance) GetEconomyResponse() (result SteamApiResponse, err error)
func (*Instance) GetShopState ¶
func (i *Instance) GetShopState() (wss WebShopState)
func (*Instance) SetHook ¶
func (i *Instance) SetHook(econItem SteamApiItemAsset, shopItem WebShopItem) (h discordSender.Hook)
type SteamApiAssetClass ¶
type SteamApiItemAsset ¶
type SteamApiResponse ¶
type SteamApiResponse struct {
Result SteamApiResult `json:"result"`
}
type SteamApiResult ¶
type SteamApiResult struct { Success bool `json:"success"` Assets []SteamApiItemAsset `json:"assets"` }
type WebShopState ¶
type WebShopState struct {
Items []WebShopItem
}
Click to show internal directories.
Click to hide internal directories.