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(logname string)
- func LoadConfig()
- type Config
- type NetConfig
- type ServiceConfig
- type TlsConfig
- type Tuning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorE ¶
Encapsulate err in a structured log and return an abstracted high-level error with message as the payload
func ErrorEF ¶
Encapsulate fields and err in a structured log and return an abstracted high-level error with message as the payload
func ErrorF ¶
Encapsulate fields in a structured log and return an abstracted high-level error with message as the payload
func EtcdClient ¶
func InitLogging ¶
func InitLogging(logname string)
func LoadConfig ¶
func LoadConfig()
Types ¶
type Config ¶
type Config struct {
Driver ServiceConfig
Etcd ServiceConfig
Elastic ServiceConfig
Commander ServiceConfig
Beluga ServiceConfig
Nex ServiceConfig
Tuning Tuning
Net NetConfig
}
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"`
}
type ServiceConfig ¶
func (*ServiceConfig) Endpoint ¶
func (s *ServiceConfig) Endpoint() string
Click to show internal directories.
Click to hide internal directories.