configuration

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadConfigurationError = ""
View Source
var Router = gin.Default()

Functions

func AspectSetup

func AspectSetup()

func BootstrapConfiguration

func BootstrapConfiguration()

func BootstrapConfiguration_Viper

func BootstrapConfiguration_Viper()

func MainRouterConfiguration

func MainRouterConfiguration()

Types

type Configuration

type Configuration struct {
	ConfigurationContext string
	Log                  *logger.Logger
}

func NewGlobalConfiguration

func NewGlobalConfiguration(ConfigurationContext string) Configuration

func NewServiceConfiguration

func NewServiceConfiguration(
	serviceName,
	ConfigurationContext string,
	Log *logger.Logger,
) Configuration

func (Configuration) GetBool

func (this Configuration) GetBool(key string) bool

func (Configuration) GetBoolD

func (this Configuration) GetBoolD(key string, defaultValue bool) (value bool)

func (Configuration) GetInt

func (this Configuration) GetInt(key string) int

func (Configuration) GetInt32

func (this Configuration) GetInt32(key string) int32

func (Configuration) GetMap

func (this Configuration) GetMap(key string) map[string]interface{}

func (Configuration) GetString

func (this Configuration) GetString(key string) string

func (Configuration) GetStrings

func (this Configuration) GetStrings(key string) []string

func (Configuration) GetUint64

func (this Configuration) GetUint64(key string) uint64

func (Configuration) IsSensitiveParameter

func (this Configuration) IsSensitiveParameter(parameterName string) bool

func (Configuration) IsSet

func (this Configuration) IsSet(key string) bool

func (Configuration) MaskSensitiveValue

func (this Configuration) MaskSensitiveValue(parameterValue string) string

func (Configuration) ReadConfigValue

func (this Configuration) ReadConfigValue(
	key string,
	rf func() string,
	df func() string,
)

type CustomAspect

type CustomAspect struct {
	CustomValue int
}

func (*CustomAspect) GetStats

func (a *CustomAspect) GetStats() interface{}

func (*CustomAspect) InRoot

func (a *CustomAspect) InRoot() bool

func (*CustomAspect) Name

func (a *CustomAspect) Name() string

Jump to

Keyboard shortcuts

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