Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSONContentType = "application/json" HTMLContentType = "text/html" )
Variables ¶
View Source
var SupportedContentTypes []string = []string{JSONContentType, HTMLContentType}
These are the MIME types that the handlers support.
Functions ¶
This section is empty.
Types ¶
type Config ¶
var Configuration Config
func LoadConfigFromFile ¶
LoadFromFile read YAML into configuration
type Contact ¶
type Contact struct { Name string `toml:"name"` Position string `toml:"postition"` Address string `toml:"address"` City string `toml:"city"` StateOrProvince string `toml:"stateorprovince"` PostalCode string `toml:"postalcode"` Country string `toml:"country"` Phone string `toml:"phone"` Fax string `toml:"fax"` Email string `toml:"email"` URL string `toml:"url"` Hours string `toml:"hours"` Instructions string `toml:"instructions"` Role string `toml:"role"` }
type Identification ¶
type Metadata ¶
type Metadata struct { Identification Identification ServiceProvider ServiceProvider Contact Contact }
type Server ¶
type Server struct { BindHost string `toml:"bind_host"` BindPort int `toml:"bind_port"` URLScheme string `toml:"url_scheme"` URLHostPort string `toml:"url_hostport"` URLBasePath string `toml:"url_basepath"` DefaultMimeType string `toml:"default_mimetype"` Encoding string `toml:"encoding"` Language string `toml:"language"` PrettyPrint bool `toml:"pretty_print"` DefaultLimit uint `toml:"paging_limit"` MaxLimit uint `toml:"paging_maxlimit"` }
Config provides an object model for configuration.
type ServiceProvider ¶
Click to show internal directories.
Click to hide internal directories.