Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceName = "applications-service"
Functions ¶
This section is empty.
Types ¶
type Applications ¶
type Applications struct { Service `mapstructure:"service"` Events `mapstructure:"events"` Postgres `mapstructure:"postgres"` Jobs `mapstructure:"jobs"` *certs.TLSConfig `mapstructure:"tls"` // contains filtered or unexported fields }
Applications service specific config options
func (*Applications) GetIngester ¶
func (s *Applications) GetIngester() ingester.Client
GetIngester returns the ingester client for the service
func (*Applications) GetStorage ¶
func (s *Applications) GetStorage() storage.Client
GetStorage returns the storage client for the service
func (*Applications) SetIngester ¶
func (s *Applications) SetIngester(i ingester.Client)
SetIngester sets the ingester client for the service
func (*Applications) SetStorage ¶
func (s *Applications) SetStorage(c storage.Client)
SetStorage sets the storage client for the service
type Events ¶
type Events struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` ClusterID string `mapstructure:"cluster_id"` }
Events holds configuration to connect to the NATS server inside the event-service
type Service ¶
type Service struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` MetricsPort int `mapstructure:"metrics_port"` LogLevel string `mapstructure:"log_level"` }
Service is a base config options struct for all services
func (*Service) SetLogLevel ¶
func (s *Service) SetLogLevel()
SetLogLevel sets the log level for the service
Click to show internal directories.
Click to hide internal directories.