Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventGatewayConfig ¶
type EventGatewayConfig struct { Service Nats `mapstructure:"service"` InternalEventService NatsGateway `mapstructure:"internal_event_service"` Auth Auth `mapstructure:"auth"` LogConfig LogConfig `mapstructure:"log"` TLSConfig certs.TLSConfig `mapstructure:"tls"` ServiceCerts *certs.ServiceCerts FrontendTLS []certs.TLSConfig `mapstructure:"frontend_tls"` }
Configuration for the Event Service
func Configure ¶
func Configure() (*EventGatewayConfig, error)
Configure marshals configuration from the event-service configuration file that has been read in by Viper during the root command's initConfig(). Settings are parsed by Viper into the EventConfig struct.
func (*EventGatewayConfig) SetLogLevel ¶
func (c *EventGatewayConfig) SetLogLevel()
SetLogLevel sets the log level for the service
type Nats ¶
type Nats struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` GatewayPort int `mapstructure:"gateway_port"` HealthCheckCredentialsFile string `mapstructure:"health_check_credentials_file"` DisableFrontendTLS bool `mapstructure:"disable_frontend_tls"` }
Nats holds the configuration for the NATs Server
type NatsGateway ¶
Click to show internal directories.
Click to hide internal directories.