config

package
v0.0.1-luvit.0...-d5f99b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2016 License: MPL-2.0 Imports: 5 Imported by: 0

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 AddFlags

func AddFlags(cmd *cobra.Command)

AddFlags lets cobra know what flags to parse.

func ReadConfigFile

func ReadConfigFile(configFile string) error

ReadConfigFile reads a specified config file, if set, overriding flag settings.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL