Documentation
¶
Index ¶
Constants ¶
View Source
const ( SportSoccer = "soccer" SportFootball = "football" SportBaseball = "baseball" SportHockey = "hockey" SportBasketball = "basketball" )
List of Sport
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
NewRequest(method string, fullPath string, body io.Reader) (*http.Request, error)
ExecuteRequest(req *http.Request, v interface{}) error
Call(method, path string, body io.Reader, v interface{}) error
}
Client : client interface
type CoreGateway ¶
CoreGateway .
func (*CoreGateway) Call ¶
func (gateway *CoreGateway) Call(method, path string, body io.Reader, v interface{}) error
Call : base method to call Core API
func (*CoreGateway) GetStandings ¶
func (gateway *CoreGateway) GetStandings() (interface{}, error)
GetStandings : get league standings
type ICoreGateway ¶
type ICoreGateway interface {
GetStandings() (interface{}, error)
}
ICoreGateway .
func NewCoreGateway ¶
func NewCoreGateway(client Client, sportID, leagueID string) ICoreGateway
NewCoreGateway .
Click to show internal directories.
Click to hide internal directories.