Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnauthenticated = errors.New("Unauthenticated or unauthorized. The API key might be missing or invalid (unauthenticated), or it might at its usage limit (unauthorized). The repsonse body will contain more info") ErrQueryParams = errors.New("One or more of the query params are invalid. The repsonse body will contain more info") ErrThrottled = errors.New("Requests are being sent too frequently - the request was throttled") ErrServer = errors.New("Internal error") ErrUnknown = errors.New("An unrecognized error has occured") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type GetEventsInput ¶
type GetEventsInput struct { Sports []string Regions []RegionType Markets []MarketType OddsFormat OddsFormatType }
type GetSportsInput ¶
type GetSportsInput struct {
IncludeInactive bool
}
type MarketType ¶
type MarketType int
const ( MarketMoneyline MarketType = iota MarketMoneylineLay MarketSpread MarketTotal MarketOutright )
func (MarketType) String ¶
func (m MarketType) String() string
type OddsFormatType ¶
type OddsFormatType int
const ( OddsFormatDecimal OddsFormatType = iota OddsFormatAmerican )
func (OddsFormatType) String ¶
func (fo OddsFormatType) String() string
type RegionType ¶
type RegionType int
const ( RegionUS RegionType = iota RegionEU RegionUK RegionAU )
func (RegionType) String ¶
func (r RegionType) String() string
Click to show internal directories.
Click to hide internal directories.