Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Stop = func() *stop { ctx, cancel := context.WithCancel(context.Background()) return &stop{ ctx: ctx, cancel: cancel, } }()
Stop is the global stop instance
Functions ¶
Types ¶
type Config ¶
type Config struct { Logger LoggerConfig Pidfile string Server ServerConfig Database DatabaseConfig }
Config represents the application's configuration
func LoadConfig ¶
LoadConfig loads the configuration from the given file
func LoadDefaultConfig ¶
func LoadDefaultConfig() *Config
LoadDefaultConfig loads the default configuration
type DatabaseConfig ¶
type DatabaseConfig struct { Username string Password string Host string Port int Database string Type string AutoCreate bool SearchPath string SSLMode string Retries int SleepBetweenRetries string MaxConnections int LogQueries bool Path string }
DatabaseConfig represents the database's configuration
Click to show internal directories.
Click to hide internal directories.