Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SERVICE_NAME = "config-mgmt-service"
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Name string `json:"name" mapstructure:"name"` Version string `json:"version" mapstructure:"version"` Host string `json:"host" mapstructure:"host"` Port int `json:"port" mapstructure:"port"` LogLevel string `json:"log_level" mapstructure:"log_level"` TLSConfig certs.TLSConfig `mapstructure:"tls"` // contains filtered or unexported fields }
Service config definition
func ConfigFromViper ¶
ConfigFromViper returns a Service instance from the current viper config
func Default ¶
func Default() *Service
Default returns a blank Service instance with default parameters
func (*Service) GetBackend ¶
Returns the configured backend
func (*Service) GetServiceCerts ¶
func (s *Service) GetServiceCerts() *certs.ServiceCerts
func (*Service) ListenAddress ¶
ListenAddress is the address where gRPC server will bind and listen
func (*Service) SetBackend ¶
func (*Service) SetLogLevel ¶
func (c *Service) SetLogLevel()
SetLogLevel sets the log level for the service
Click to show internal directories.
Click to hide internal directories.