Documentation
¶
Overview ¶
Package config provides common configuration structures and utilities shared between courier and replica services.
Index ¶
Constants ¶
View Source
const ( // DefaultLogLevel is the default logging level DefaultLogLevel = "NOTICE" // Common timeout defaults (in milliseconds) DefaultConnectTimeout = 60 * 1000 // 60 sec. DefaultHandshakeTimeout = 300 * 1000 // 300 sec. (increased for CI stability) DefaultReauthInterval = 300 * 1000 // 300 sec. )
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromBytes ¶
LoadConfigFromBytes parses and validates the provided buffer as a TOML config
func LoadConfigFromFile ¶
LoadConfigFromFile loads and parses the provided file as a TOML config
Types ¶
type Logging ¶
type Logging struct {
// Disable disables logging entirely.
Disable bool
// File specifies the log file, if omitted stdout will be used.
File string
// Level specifies the log level.
Level string
}
Logging is the Katzenpost server logging configuration.
func DefaultLogging ¶
func DefaultLogging() Logging
DefaultLogging returns the default logging configuration
Click to show internal directories.
Click to hide internal directories.