Documentation
¶
Overview ¶
Package bovada provides a means of querying the Bovada API to determine upcoming events for US professional sports leagues.
Index ¶
Constants ¶
View Source
const ( // Host is the hostname for Bovada. Host = "www.bovada.lv" // MLBPath is the path for the MLB events endpoint. MLBPath = "services/sports/event/coupon/events/A/description/baseball/mlb" // NBAPath is the path for the NBA events endpoint. NBAPath = "services/sports/event/coupon/events/A/description/basketball/nba" // NHLPath is the path for the NHL events endpoint. NHLPath = "services/sports/event/coupon/events/A/description/hockey/nhl" // NFLPath is the path for the NFL events endpoint. NFLPath = "services/sports/event/coupon/events/A/description/football/nfl" // CFBPath is the path for the NCAA College Football events endpoint. CFBPath = "services/sports/event/coupon/events/A/description/football/college-football" )
Variables ¶
View Source
var ( // ErrNoEvents means the query was a success, but returned // no events. ErrNoEvents = errors.New("no events returned") )
Functions ¶
func NewQueryOpts ¶
func NewQueryOpts() *queryOpts
NewQueryOpts returns a |*queryOpts| with the language set to English.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements methods for interacting with the Bovada API.
type EventResponse ¶
type EventResponse struct { Paths []path `json:"path"` Events []event `json:"events"` }
EventResponse is the data returned from an API call.
Click to show internal directories.
Click to hide internal directories.