Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `toml:"server"`
Content ContentConfig `toml:"content"`
Sass SassConfig `toml:"sass"`
JS JSConfig `toml:"js"`
Pirsch PirschConfig `toml:"pirsch"`
}
Config is the Oogway application config.
type ContentConfig ¶
type ContentConfig struct {
NotFound string `toml:"not_found"`
}
ContentConfig is the content configuration.
type JSConfig ¶
type JSConfig struct {
Entrypoint string `toml:"entrypoint"`
Dir string `toml:"dir"`
Watch bool `toml:"watch"`
Out string `toml:"out"`
SourceMap bool `toml:"source_map"`
}
JSConfig is the JavaScript compiler configuration.
type PirschConfig ¶
type PirschConfig struct {
ClientID string `toml:"client_id"`
ClientSecret string `toml:"client_secret"`
Subnets []string `toml:"subnets"`
Header []string `toml:"header"`
}
PirschConfig is the configuration for pirsch.io.
type SassConfig ¶
type SassConfig struct {
Entrypoint string `toml:"entrypoint"`
Dir string `toml:"dir"`
Watch bool `toml:"watch"`
Out string `toml:"out"`
OutSourceMap string `toml:"out_source_map"`
}
SassConfig is the sass compiler configuration.
type ServerConfig ¶
type ServerConfig struct {
Host string `toml:"host"`
Port int `toml:"port"`
ShutdownTimeout int `toml:"shutdown_time"`
WriteTimeout int `toml:"write_timeout"`
ReadTimeout int `toml:"read_timeout"`
TLSCertFile string `toml:"tls_cert_file"`
TLSKeyFile string `toml:"tls_key_file"`
}
ServerConfig is the HTTP server configuration.
Click to show internal directories.
Click to hide internal directories.