Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2020 Changes in this version + type Action struct + Link string + Name string + type App struct + AppID uint32 + AssetCount uint32 + Contexts Contexts + Icon string + InventoryLogo string + Link string + Name string + TradePermissions string + type AppInfo struct + AppID uint32 + Icon string + Link string + Name string + type Apps map[string]*App + func GetApps(client *http.Client, steamID steamid.SteamID) (Apps, error) + func (i *Apps) Get(appID uint32) (*App, error) + func (i *Apps) ToMap() map[string]*App + 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 + IconLargeURL string + IconURL 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(fetch PartialInventoryFetcher) (*Inventory, error) + func GetOwnInventory(client *http.Client, contextID uint64, appID uint32) (*Inventory, error) + func Merge(dst *Inventory, srcs ...*Inventory) *Inventory + func NewInventory() *Inventory + 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 GetOwnPartialInventory(client *http.Client, contextID uint64, appID uint32, start uint) (*PartialInventory, error) + func PerformRequest(client *http.Client, req *http.Request) (*PartialInventory, error) + type PartialInventoryFetcher func(start uint) (*PartialInventory, error) + type Tag struct + Category string + CategoryName string + InternalName string + Name string