Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindConfigFile ¶
func FindConfigFile() string
func NewEmptyLogger ¶
Types ¶
type Config ¶
type Config struct { Logging *LoggingConfig Database *DatabaseConfig Leases *LeasesConfig Server *ServerConfig Management *ManagementConfig // contains filtered or unexported fields }
func NewEmptyConfig ¶
func NewEmptyConfig() *Config
type DatabaseConfig ¶
type Environment ¶
type Environment struct { Config *Config Env EnvironmentEnv Log *verbose.Logger // contains filtered or unexported fields }
Environment holds "global" application information such as a database connection, logging, the config, sessions, etc.
func NewEnvironment ¶
func NewEnvironment(t EnvironmentEnv) *Environment
func NewTestEnvironment ¶
func NewTestEnvironment() *Environment
func (*Environment) IsDev ¶
func (e *Environment) IsDev() bool
func (*Environment) IsProd ¶
func (e *Environment) IsProd() bool
func (*Environment) IsTesting ¶
func (e *Environment) IsTesting() bool
func (*Environment) SubscribeShutdown ¶
func (e *Environment) SubscribeShutdown() <-chan bool
type EnvironmentEnv ¶
type EnvironmentEnv string
const ( EnvTesting EnvironmentEnv = "testing" EnvProd EnvironmentEnv = "production" EnvDev EnvironmentEnv = "development" )
type LeasesConfig ¶
type LeasesConfig struct {
DeleteAfter string // TODO: Run a job to clean up old leases
}
type LoggingConfig ¶
type ManagementConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.