Documentation ¶
Overview ¶
Package config is the central location for all configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ListenAddress = "127.0.0.1:6379" // Redundis listen address SentinelAddress = "127.0.0.1:26379" // Address of sentinel node SentinelPassword = "" // Sentinel password MonitorName = "test" // Name of sentinel monitor TimeoutMasterWait = time.Duration(masterWait) * time.Second // Time to wait for node to transition to master (seconds) TimeoutNotReady = time.Duration(notReady) * time.Second // Time to wait to connect to redis|sentinel (seconds) TimeoutSentinelPoll = time.Duration(sentinelPoll) * time.Second // Time to wait for sentinel to respond (seconds) LogLevel = "info" // Log level [fatal, error, info, debug, trace] Log lumber.Logger )
Functions ¶
func ReadConfigFile ¶
ReadConfigFile reads a specified config file, if set, overriding flag settings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.