Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Port int `default:"3030"` LogLevel LogLevel `default:"info" split_words:"true"` DefaultUserName string `default:"admin" split_words:"true"` DefaultUserPass string `default:"admin" split_words:"true"` PassStrength int `default:"10" split_words:"true"` DatabaseDialect string `default:"sqlite3" split_words:"true"` DatabaseConnection string `default:"data/traggo.db" split_words:"true"` }
Config represents the application configuration.
type FutureLog ¶
FutureLog is an intermediate type for log messages. It is used before the config was loaded because without loaded config we do not know the log level, so we log these messages once the config was initialized.
type LogLevel ¶
LogLevel type that provides helper methods for decoding.
func (LogLevel) AsZeroLogLevel ¶
AsZeroLogLevel converts the LogLevel to a zerolog.Level.
Click to show internal directories.
Click to hide internal directories.