api

package
v0.0.0-...-553c866 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OddsAPI

type OddsAPI struct {
	// contains filtered or unexported fields
}

OddsAPI - API interface to REST calls to retrieve league odds

func NewOddsAPI

func NewOddsAPI(apikey string) *OddsAPI

NewOddsAPI - Create the API interface

func (*OddsAPI) RetrieveLeague

func (o *OddsAPI) RetrieveLeague(region, league, market string) (*types.Fixtures, error)

RetrieveLeague - Get the fixtures for a league

func (*OddsAPI) RetrieveLeagueFromFile

func (o *OddsAPI) RetrieveLeagueFromFile(file string) (*types.Fixtures, error)

RetrieveLeagueFromFile - umarshall into structs from file

func (*OddsAPI) RetrievePM

func (o *OddsAPI) RetrievePM(queryDetail *types.Query, interval int) (*types.PMFeed, error)

RetrievePM - Get the fixtures from PM

func (*OddsAPI) RetrievePMFromFile

func (o *OddsAPI) RetrievePMFromFile(file string) (*types.PMFeed, error)

RetrievePMFromFile - unmarshall into structs from file

Jump to

Keyboard shortcuts

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