Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRF ¶
type Configuration ¶
type Configuration struct {
WebServer WebServer `json:"web_server"`
CSRF CSRF `json:"csrf"`
Database PersistentStore `json:"database_storage"`
Statsd stats.Statsd `json:"statsd"`
Proxies Proxies `json:"proxies"`
}
func (Configuration) String ¶
func (c Configuration) String() string
type DSN ¶
type DSN struct {
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
Address string `json:"address,omitempty"`
Database string `json:"database,omitempty"`
Parameters map[string]string `json:"parameters,omitempty"`
ServerPublicKey string `json:"server_public_key,omitempty"`
AllowNativePasswords bool `json:"allow_native_passwords,omitempty"`
}
DSN represents the "data source name" for a database.
type PersistentStore ¶
type WebServer ¶
type WebServer struct {
TLS struct {
Enabled bool `json:"enabled"`
Certificate string `json:"certificate"`
Key string `json:"key"`
} `json:"tls"`
BindAddress string `json:"bind_address"`
Port int `json:"port"`
ReadTimeoutS int `json:"read_timeout_s"`
WriteTimeoutS int `json:"write_timeout_s"`
APIKeys []string `json:"api_keys"`
}
Click to show internal directories.
Click to hide internal directories.