config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoAnalyzerSpecified = errors.New("No analyzer specified in the configuration file")
)

ErrNoAnalyzerSpecified error no analyzer section is specified in the configuration file

Functions

func GetAnalyzerServiceAddresses added in v0.12.0

func GetAnalyzerServiceAddresses() ([]common.ServiceAddress, error)

GetAnalyzerServiceAddresses returns a list of connectable Analyzers

func GetConfig

func GetConfig() *viper.Viper

GetConfig get current config

func GetEtcdServerAddrs added in v0.5.0

func GetEtcdServerAddrs() []string

GetEtcdServerAddrs returns the ETCD server address specified in the configuration file or embedded

func GetOneAnalyzerServiceAddress added in v0.12.0

func GetOneAnalyzerServiceAddress() (common.ServiceAddress, error)

GetOneAnalyzerServiceAddress returns a random connectable Analyzer

func InitConfig added in v0.5.0

func InitConfig(backend string, paths []string) error

InitConfig with a backend

func IsTLSenabled added in v0.12.0

func IsTLSenabled() bool

IsTLSenabled returns true is the analyzer certificates are set

func SetDefault added in v0.3.0

func SetDefault(key string, value interface{})

SetDefault set default configuration key the value

Types

This section is empty.

Source Files

  • config.go

Jump to

Keyboard shortcuts

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