Documentation
¶
Index ¶
- Variables
- func GetAnalyzerServiceAddresses() ([]common.ServiceAddress, error)
- func GetConfig() *viper.Viper
- func GetEtcdServerAddrs() []string
- func GetOneAnalyzerServiceAddress() (common.ServiceAddress, error)
- func GetURL(protocol string, addr string, port int, path string) *url.URL
- func InitConfig(backend string, paths []string) error
- func IsTLSenabled() bool
- func SetDefault(key string, value interface{})
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 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
Types ¶
This section is empty.
Source Files
¶
- config.go
Click to show internal directories.
Click to hide internal directories.