Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvironmentProviderSet = wire.NewSet( ProvideDatabaseStringFromEnvironment, ProvideWebPortFromEnvironment, ProvideDebugModeFromEnvironment, ProvideInitTimeFromCurrentTime, )
EnvironmentProviderSet is a Wire provider set for environment configuration
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config contains all the runtime configuration options
type DatabaseString ¶
type DatabaseString string
DatabaseString is a string alias containing a database connection string
func ProvideDatabaseStringFromEnvironment ¶
func ProvideDatabaseStringFromEnvironment() (DatabaseString, error)
ProvideDatabaseStringFromEnvironment creates a DatabaseString from the environment, or errors when it's missing
type DebugMode ¶
type DebugMode bool
DebugMode is whether a debug state is set
func ProvideDebugModeFromEnvironment ¶
ProvideDebugModeFromEnvironment creates a DebugMode based on the value in the DEBUG env var
type InitTime ¶
InitTime is the program initialization time
func ProvideInitTimeFromCurrentTime ¶
func ProvideInitTimeFromCurrentTime() InitTime
ProvideInitTimeFromCurrentTime initialized the program InitTime from the current time
Click to show internal directories.
Click to hide internal directories.