Versions in this module Expand all Collapse all v0 v0.3.0 Jul 3, 2022 Changes in this version + var ErrQueryParams = errors.New(...) + var ErrServer = errors.New("Internal error") + var ErrThrottled = errors.New("Requests are being sent too frequently - the request was throttled") + var ErrUnauthenticated = errors.New(...) + var ErrUnknown = errors.New("An unrecognized error has occured") + type Bookmaker struct + Key string + LastUpdate string + Markets []Market + Title string + type Client struct + ApiKey string + RequestsRemaining int + RequestsUsed int + func NewClient(apiKey string) (c Client) + func (c *Client) GetEvents(input GetEventsInput) (evs []Event, err error) + func (c *Client) GetSports(input GetSportsInput) (sports []Sport, err error) + type Event struct + AwayTeam string + Bookmakers []Bookmaker + CommenceTime time.Time + HomeTeam string + Id string + SportKey string + SportTitle string + type GetEventsInput struct + Markets []MarketType + OddsFormat OddsFormatType + Regions []RegionType + Sports []string + type GetSportsInput struct + IncludeInactive bool + type Market struct + Key string + Outcomes []Outcome + type MarketType int + const MarketMoneyline + const MarketMoneylineLay + const MarketOutright + const MarketSpread + const MarketTotal + func (m MarketType) String() string + type OddsFormatType int + const OddsFormatAmerican + const OddsFormatDecimal + func (fo OddsFormatType) String() string + type Outcome struct + Name string + Points float64 + Price float64 + type RegionType int + const RegionAU + const RegionEU + const RegionUK + const RegionUS + func (r RegionType) String() string + type Sport struct + Active bool + Description string + Group string + HasOutrights bool + Key string + Title string