Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetTracksEndpoint ¶
func NewGetTracksEndpoint(svc TracksService) http.Handler
Types ¶
type Track ¶
type Track struct {
ID int64 `json:"id"`
Name string `json:"name"`
ConfigName string `json:"configName"`
Category string `json:"category"`
Location string `json:"location"`
CornersPerLap int `json:"cornersPerLap"`
LengthMiles float64 `json:"lengthMiles"`
Description string `json:"description"`
LogoURL string `json:"logoUrl"`
SmallImageURL string `json:"smallImageUrl"`
LargeImageURL string `json:"largeImageUrl"`
TrackMapURL string `json:"trackMapUrl"`
TrackMapLayers TrackMapLayers `json:"trackMapLayers"`
IsDirt bool `json:"isDirt"`
IsOval bool `json:"isOval"`
HasNightLighting bool `json:"hasNightLighting"`
RainEnabled bool `json:"rainEnabled"`
FreeWithSub bool `json:"freeWithSubscription"`
Retired bool `json:"retired"`
PitRoadSpeedLimit int `json:"pitRoadSpeedLimit"`
}
type TrackMapLayers ¶
Click to show internal directories.
Click to hide internal directories.