Documentation ¶
Index ¶
- func Error(message string) error
- func ErrorE(message string, err error) error
- func ErrorEF(message string, err error, fields log.Fields) error
- func ErrorF(message string, fields log.Fields) error
- func EtcdClient() (*clientv3.Client, error)
- func InitLogging()
- func LoadConfig()
- func Warn(message string)
- func WarnE(message string, err error)
- func WarnEF(message string, err error, fields log.Fields)
- func WarnF(message string, fields log.Fields)
- type Config
- type NetConfig
- type ServiceConfig
- type TLSConfig
- type Tuning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorE ¶
ErrorE encapsulates err in a structured log and return an abstracted high-level error with message as the payload
func ErrorEF ¶
ErrorEF encapsulates fields and err in a structured log and return an abstracted high-level error with message as the payload
func ErrorF ¶
ErrorF encapsulates fields in a structured log and return an abstracted high-level error with message as the payload
func EtcdClient ¶
EtcdClient read the specific configuration files to initiate etcd connection
func LoadConfig ¶
func LoadConfig()
LoadConfig loads the cogs config from a well known file location.
func Warn ¶ added in v0.3.1
func Warn(message string)
Warn acts like Error, but doesnt return anything
Types ¶
type Config ¶
type Config struct { Driver ServiceConfig Etcd ServiceConfig Elastic ServiceConfig Commander ServiceConfig Beluga ServiceConfig Nex ServiceConfig Tuning Tuning Net NetConfig }
Config is the top level configuration object for the cogs system.
type NetConfig ¶
type NetConfig struct { VtepIfx string `yaml:"vtepIfx"` Mtu int `yaml:"mtu"` VtepMtu int `yaml:"vtepMtu"` ServiceTunnelIP string `yaml:"serviceTunnelIP"` ExternalIfx string `yaml:"externalIfx"` ExternalIP string `yaml:"externalIP"` ExternalSubnet string `yaml:"externalSubnet"` ExternalGateway string `yaml:"externalGateway"` }
NetConfig contains the cogs networking configuration.
type ServiceConfig ¶
ServiceConfig encapsulates information for communicating with services.
func (*ServiceConfig) Endpoint ¶
func (s *ServiceConfig) Endpoint() string
Endpoint returns the endpoint string of a service config.