infrastructure

package
v0.0.0-...-2f731f1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigHandler

type ConfigHandler struct {
	// contains filtered or unexported fields
}

ConfigHandler dealing with configuration keys.

func NewViperConfig

func NewViperConfig() *ConfigHandler

NewViperConfig allows to create a new configuration handler based on viper.

func (ConfigHandler) GetConfig

func (c ConfigHandler) GetConfig(key string, defaultValue interface{}) interface{}

GetConfig allows to retrieve a configuration value for a given key. Implements function from IConfiguration interface

func (ConfigHandler) GetConfigBool

func (c ConfigHandler) GetConfigBool(key string, defaultValue bool) bool

GetConfigBool allows to retrieve a configuration Boolean for a given key. Implements function from IConfiguration interface

func (ConfigHandler) GetConfigString

func (c ConfigHandler) GetConfigString(key string, defaultValue string) string

GetConfigString allows to retrieve a configuration String for a given key. Implements function from IConfiguration interface

func (ConfigHandler) GetConfigUInt

func (c ConfigHandler) GetConfigUInt(key string, defaultValue uint) uint

GetConfigUInt allows to retrieve a configuration UInt for a given key. Implements function from IConfiguration interface

Jump to

Keyboard shortcuts

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