Documentation
¶
Index ¶
- func Bold(s string) string
- func DisplayContent(headerContent, s string)
- func ParameterQuery(p *Params) (string, error)
- func Strikethrough(s string) string
- func SubtleText(s string) string
- func Underline(s string) string
- type Away
- type Client
- type Conference
- type Content
- type Dates
- type Division
- type Franchise
- type Game
- type Home
- type LeagueRecord
- type MetaData
- type Params
- type ScheduleFilter
- type Schedules
- type SchedulesService
- type Status
- type Team
- type Teams
- type TeamsService
- type TimeZone
- type Venue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayContent ¶
func DisplayContent(headerContent, s string)
func ParameterQuery ¶
ParameterQuery is used as modifiers for requests
func Strikethrough ¶
func SubtleText ¶
Types ¶
type Away ¶
type Away struct {
LeagueRecord LeagueRecord `json:"leagueRecord"`
Team Team `json:"team"`
Score int `json:"score"`
}
type Client ¶
type Client struct {
// Services used for talking to different parts of the NHL API API
Schedules *SchedulesService
Teams *TeamsService
// contains filtered or unexported fields
}
Client struct is used to create a new NHL API endpoint
func (*Client) SetToken ¶
SetToken is used to set the http token bearer for interaction with the API
func (*Client) SetUserAgent ¶
SetUserAgent is used to set the user agent for interaction with the API
type Conference ¶
type Game ¶
type Game struct {
GameDate time.Time `json:"gameDate"`
GameType string `json:"gameType"`
Season string `json:"season"`
Link string `json:"link"`
Content Content `json:"content"`
Status Status `json:"status"`
Venue Venue `json:"venue,omitempty"`
Teams struct {
Away Away `json:"away"`
Home Home `json:"home"`
} `json:"teams"`
GamePk int `json:"gamePk"`
}
type Home ¶
type Home struct {
LeagueRecord LeagueRecord `json:"leagueRecord"`
Team Team `json:"team"`
Score int `json:"score"`
}
type LeagueRecord ¶
type ScheduleFilter ¶
type SchedulesService ¶
type SchedulesService service
type Team ¶
type Team struct {
ShortName string `json:"shortName,omitempty"`
Name string `json:"name"`
Link string `json:"link"`
Abbreviation string `json:"abbreviation,omitempty"`
TeamName string `json:"teamName,omitempty"`
LocationName string `json:"locationName,omitempty"`
FirstYearOfPlay string `json:"firstYearOfPlay,omitempty"`
OfficialSiteURL string `json:"officialSiteUrl,omitempty"`
Division Division `json:"division,omitempty"`
Conference Conference `json:"conference,omitempty"`
Franchise Franchise `json:"franchise,omitempty"`
Venue Venue `json:"venue,omitempty"`
ID int `json:"id"`
FranchiseID int `json:"franchiseId,omitempty"`
Active bool `json:"active,omitempty"`
}
type TeamsService ¶
type TeamsService service
Click to show internal directories.
Click to hide internal directories.