Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EURegion Europe Region EURegion = "https://eu.api.battle.net" // USRegion U.S.A. Region USRegion = "https://us.api.battle.net" // KRRegion Korean Region KRRegion = "https://kr.api.battle.net" // TWRegion Taiwan Region TWRegion = "https://tw.api.battle.net" )
View Source
const (
// ErrMalformedAuctionLine error
ErrMalformedAuctionLine = "malformed auction line"
)
Variables ¶
View Source
var ( // ErrNoAuctions error returned when the Auctions slice is empty ErrNoAuctions = errors.New("error: no auctions in slice") )
Functions ¶
Types ¶
type APIResponse ¶
type APIResponse struct {
Files []Snapshot `json:"files"`
}
APIResponse is the root of the response for the battle net api fetch
type Auction ¶
type Auction struct { // Auc internal blizzard auction id Auc uint64 // Item item id Item uint64 // Buyout is the price set as direct buyout Buyout uint64 // Quantity item stack size Quantity uint64 }
Auction representation of an auction based on json auction house dump
func (*Auction) BuyoutUnit ¶
BuyoutUnit is the price for a single item
type Market ¶
Market represent the state of the market of a given item
func BuyoutAverage ¶
BuyoutAverage for a given item
type Region ¶
type Region int
Region of the battle.net api Query (EuRegion, UsRegion, TwRegion, KrRegion)
Click to show internal directories.
Click to hide internal directories.