Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶ added in v0.12.0
type API struct {
Secret string `json:"secret"`
}
API is the server API configuration.
type Analytics ¶
type Analytics struct {
Provider string `json:"provider"`
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
Subnets []string `json:"subnets"`
Header []string `json:"header"`
}
Analytics is the web analytics configuration.
type Config ¶
type Config struct {
BaseDir string `json:"-"`
FuncMap template.FuncMap `json:"-"`
Dev bool `json:"dev"`
LogLevel string `json:"log_level"`
Server Server `json:"server"`
API API `json:"api"`
Remote Remote `json:"remote"`
Git Git `json:"git"`
Content Content `json:"content"`
CORS CORS `json:"cors"`
Sass Sass `json:"sass"`
JS JS `json:"js"`
Analytics Analytics `json:"analytics"`
UI UI `json:"ui"`
}
Config is the Oogway application config.
type Content ¶
type Content struct {
Provider string `json:"provider"`
NotFound map[string]string `json:"not_found"`
}
Content is the content and source configuration.
type JS ¶
type JS struct {
Entrypoint string `json:"entrypoint"`
Dir string `json:"dir"`
Watch bool `json:"watch"`
Out string `json:"out"`
SourceMap bool `json:"source_map"`
}
JS is the JavaScript compiler configuration.
type Sass ¶
type Sass struct {
Entrypoint string `json:"entrypoint"`
Dir string `json:"dir"`
Watch bool `json:"watch"`
Out string `json:"out"`
OutSourceMap string `json:"out_source_map"`
}
Sass is the sass compiler configuration.
type Server ¶
type Server struct {
Host string `json:"host"`
Port int `json:"port"`
ShutdownTimeout int `json:"shutdown_time"`
WriteTimeout int `json:"write_timeout"`
ReadTimeout int `json:"read_timeout"`
TLSCertFile string `json:"tls_cert_file"`
TLSKeyFile string `json:"tls_key_file"`
Hostname string `json:"hostname"`
SecureCookies bool `json:"secure_cookies"`
CookieDomainName string `json:"cookie_domain_name"`
}
Server is the HTTP server configuration.
Click to show internal directories.
Click to hide internal directories.