steamEconomy

package
v0.0.0-...-34482f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 Setup

func Setup() (i *Instance)

func (*Instance) FireAll

func (i *Instance) FireAll()

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) Run

func (i *Instance) Run()

func (*Instance) SetHook

func (i *Instance) SetHook(econItem SteamApiItemAsset, shopItem WebShopItem) (h discordSender.Hook)

type SteamApiAssetClass

type SteamApiAssetClass struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type SteamApiItemAsset

type SteamApiItemAsset struct {
	Prices         map[string]int       `json:"prices"`
	OriginalPrices map[string]int       `json:"original_prices"`
	Name           string               `json:"name"`
	Class          []SteamApiAssetClass `json:"class"`
	Classid        string               `json:"classid"`
}

type SteamApiResponse

type SteamApiResponse struct {
	Result SteamApiResult `json:"result"`
}

type SteamApiResult

type SteamApiResult struct {
	Success bool                `json:"success"`
	Assets  []SteamApiItemAsset `json:"assets"`
}

type WebShopItem

type WebShopItem struct {
	Id      string
	Link    string
	Name    string
	Picture string
}

type WebShopState

type WebShopState struct {
	Items []WebShopItem
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL