config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 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.16.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

func GetEtcdServerAddrs() []string

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

func GetOneAnalyzerServiceAddress added in v0.16.0

func GetOneAnalyzerServiceAddress() (common.ServiceAddress, error)

GetOneAnalyzerServiceAddress returns a random connectable Analyzer

func GetURL added in v0.16.0

func GetURL(protocol string, addr string, port int, path string) *url.URL

func InitConfig

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

InitConfig with a backend

func IsTLSenabled added in v0.16.0

func IsTLSenabled() bool

IsTLSenabled returns true is the analyzer certificates are set

func SetDefault

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