Documentation ¶
Overview ¶
Includes inventory types as used in the trade package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Currencies ¶
func (*Currencies) UnmarshalJSON ¶
func (c *Currencies) UnmarshalJSON(data []byte) error
type Description ¶
type Description struct { AppId uint32 `json:",string"` ClassId economy.ClassId `json:",string"` InstanceId economy.InstanceId `json:",string"` IconUrl string `json:"icon_url"` IconDragUrl string `json:"icon_drag_url"` Name string MarketName string `json:"market_name"` // Colors in hex, for example `B2B2B2` NameColor string `json:"name_color"` BackgroundColor string `json:"background_color"` Type string Tradable jsont.UintBool Marketable jsont.UintBool Commodity jsont.UintBool Descriptions DescriptionLines Actions []*Action // Application-specific data, like "def_index" and "quality" for TF2 AppData map[string]string }
type DescriptionLine ¶
type DescriptionLines ¶
type DescriptionLines []*DescriptionLine
func (*DescriptionLines) UnmarshalJSON ¶
func (d *DescriptionLines) UnmarshalJSON(data []byte) error
type Descriptions ¶
type Descriptions map[string]*Description
func (*Descriptions) UnmarshalJSON ¶
func (d *Descriptions) UnmarshalJSON(data []byte) error
type Inventory ¶
type Inventory struct { Items Items `json:"rgInventory"` Currencies Currencies `json:"rgCurrency"` Descriptions Descriptions `json:"rgDescriptions"` AppInfo *AppInfo `json:"rgAppInfo"` }
func GetFullInventory ¶
func GetFullInventory(getFirst func() (*PartialInventory, error), getNext func(start uint) (*PartialInventory, error)) (*Inventory, error)
func GetOwnInventory ¶
type Items ¶
func (*Items) UnmarshalJSON ¶
type PartialInventory ¶
type PartialInventory struct { Success bool Error string Inventory More bool MoreStart MoreStart `json:"more_start"` }
A partial inventory as sent by the Steam API.
func DoInventoryRequest ¶
func GetPartialOwnInventory ¶
Click to show internal directories.
Click to hide internal directories.