Documentation ¶
Index ¶
Constants ¶
View Source
const ( TZDBFile = "tzdata/timezones.zip" TZVersionFile = "tzdata/version.json" GeoDataURLTemplate = "https://github.com/evansiroky/timezone-boundary-builder/releases/download/%s/timezones-with-oceans.geojson.zip" GeoDataReleaseURLTemplate = "https://github.com/evansiroky/timezone-boundary-builder/releases/tag/%s" )
View Source
const ( Latitude = "lat" Longitude = "lon" )
constant valuses for lat / lon
Variables ¶
Functions ¶
Types ¶
type ConfigSchema ¶
type ConfigSchema struct { Tz TzSchema `mapstructure:"tz"` Web WebSchema `mapstructure:"web"` RuntimeVersion string `mapstructure:"-"` }
ConfigSchema main configuration for the news room
var Settings ConfigSchema
Settings general settings
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config ConfigSchema) (*Server, error)
type TzRelease ¶
type TzRelease struct { Version string `json:"version"` URL string `json:"url"` GeoDataURL string `json:"geo_data_url"` }
func NewTzRelease ¶
Click to show internal directories.
Click to hide internal directories.