Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server `toml:"server"` PageContext PageContext `toml:"pageContext"` Schedule ScheduleConfig `toml:"schedule"` ShortURLs ShortURLsConfig `toml:"shortUrls"` TrustedProxies []string `toml:"trustedProxies"` }
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type Globals ¶
type Globals struct { PageData interface{} //@TODO Put some kind of structure here PageContext PageContext }
Globals is a structure containing template data.
type IndexCountdownBackground ¶
type IndexCountdownBackground struct { Type IndexCountdownBackgroundType `toml:"type"` Source string `toml:"source"` }
type IndexCountdownBackgroundType ¶
type IndexCountdownBackgroundType string
const ( CountdownBackgroundVideo IndexCountdownBackgroundType = "video" CountdownBackgroundImage IndexCountdownBackgroundType = "image" )
type IndexCountdownConfig ¶
type IndexCountdownConfig struct { Enabled bool `toml:"enabled"` Until tomlTime `toml:"until"` Callout string `toml:"callout"` LinkTo string `toml:"linkTo"` Background IndexCountdownBackground `toml:"background"` }
type PageContext ¶
type PageContext struct { LongName string `toml:"longName"` ShortName string `toml:"shortName"` SiteDescription string `toml:"siteDescription"` URLPrefix string `toml:"urlPrefix"` FullURL string `toml:"fullURL"` MainTwitter string `toml:"mainTwitter"` MainFacebook string `toml:"mainFacebook"` MainInstagram string `toml:"mainInstagram"` NewsTwitter string `toml:"newsTwitter"` MyRadioAPIKey string `toml:"publicMyRadioAPIKey"` ODName string `toml:"odName"` Christmas bool `toml:"christmas"` AprilFools bool `toml:"aprilFools"` CIN bool `toml:"cin"` CINLivestreaming bool `toml:"cinLivestreaming"` CINAPI string `toml:"cinAPI"` CINHashtag string `toml:"cinHashtag"` CINLive string `toml:"cinLive"` IndexCountdown *IndexCountdownConfig `toml:"indexCountdown"` CacheBuster string `toml:"cacheBuster"` Pages []Page Youtube youtube Gmaps gmaps CurrentYear int }
PageContext is a structure containing static information to provide to all page templates.
This contains the website's long and short names, as well as a directory of pages for navigation.
type ScheduleConfig ¶
type ScheduleConfig struct { Sustainer SustainerConfig `toml:"sustainer"` StartHour int `toml:"startHour"` }
ScheduleConfig is a structure configuring the schedule views.
type Server ¶
type Server struct { Address string `toml:"address"` Port int `toml:"port"` Timeout int `toml:"timeout"` MyRadioAPI string `toml:"myradio_api"` }
Server is a structure containing server configuration.
type ShortURLsConfig ¶
type ShortURLsConfig struct { // UpdateInterval is how often the short URLs should be refreshed, in seconds. UpdateInterval uint `toml:"updateInterval"` }
ShortURLsConfig is a structure configuring the short-urls subsystem.
type SustainerConfig ¶
SustainerConfig is a structure describing the sustainer show.
Click to show internal directories.
Click to hide internal directories.