Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2016 Changes in this version + type Action struct + Link string + Name string + type AppInfo struct + AppId uint32 + Icon string + Link string + Name string + type Context struct + AssetCount uint32 + ContextId uint64 + Name string + type Contexts map[string]*Context + func (c *Contexts) Get(contextId uint64) (*Context, error) + func (c *Contexts) ToMap() map[string]*Context + type Currencies map[string]*Currency + func (c *Currencies) ToMap() map[string]*Currency + func (c *Currencies) UnmarshalJSON(data []byte) error + type Currency struct + ClassId uint64 + Id uint64 + IsCurrency bool + Pos uint32 + type Description struct + Actions []*Action + AppData map[string]string + AppId uint32 + BackgroundColor string + ClassId uint64 + Commodity jsont.UintBool + Descriptions DescriptionLines + IconDragUrl string + IconUrl string + IconUrlLarge string + InstanceId uint64 + MarketHashName string + MarketName string + MarketTradableRestriction uint32 + Marketable jsont.UintBool + Name string + NameColor string + Tags []*Tag + Tradable jsont.UintBool + Type string + type DescriptionLine struct + Color *string + Type *string + Value string + type DescriptionLines []*DescriptionLine + func (d *DescriptionLines) UnmarshalJSON(data []byte) error + type Descriptions map[string]*Description + func (d *Descriptions) Get(classId uint64, instanceId uint64) (*Description, error) + func (d *Descriptions) ToMap() map[string]*Description + func (d *Descriptions) UnmarshalJSON(data []byte) error + type GenericInventory map[uint32]map[uint64]*Inventory + func NewGenericInventory() GenericInventory + func (i *GenericInventory) Add(appId uint32, contextId uint64, inv *Inventory) + func (i *GenericInventory) Get(appId uint32, contextId uint64) (*Inventory, error) + type Inventory struct + AppInfo *AppInfo + Currencies Currencies + Descriptions Descriptions + Items Items + func GetFullInventory(getFirst func() (*PartialInventory, error), ...) (*Inventory, error) + func GetOwnInventory(client *http.Client, contextId uint64, appId uint32) (*Inventory, error) + func Merge(p ...*Inventory) *Inventory + type InventoryApp struct + AppId uint32 + AssetCount uint32 + Contexts Contexts + Icon string + InventoryLogo string + Link string + Name string + TradePermissions string + type InventoryApps map[string]*InventoryApp + func GetInventoryApps(client *http.Client, steamId steamid.SteamId) (InventoryApps, error) + func (i *InventoryApps) Get(appId uint32) (*InventoryApp, error) + func (i *InventoryApps) ToMap() map[string]*InventoryApp + type Item struct + Amount uint64 + ClassId uint64 + Id uint64 + InstanceId uint64 + Pos uint32 + type Items map[string]*Item + func (i *Items) Get(assetId uint64) (*Item, error) + func (i *Items) ToMap() map[string]*Item + func (i *Items) UnmarshalJSON(data []byte) error + type MoreStart uint + func (m *MoreStart) UnmarshalJSON(data []byte) error + type PartialInventory struct + Error string + More bool + MoreStart MoreStart + Success bool + func DoInventoryRequest(client *http.Client, req *http.Request) (*PartialInventory, error) + func GetPartialOwnInventory(client *http.Client, contextId uint64, appId uint32, start *uint) (*PartialInventory, error) + type Tag struct + Category string + CategoryName string + InternalName string + Name string