config

package
v0.0.0-...-4da4744 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AuthnEndpoint string `mapstructure:"authn_endpoint"`
	AuthzEndpoint string `mapstructure:"authz_endpoint"`
}

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 LogConfig

type LogConfig struct {
	LogLevel  string `mapstructure:"log_level"`
	LogFormat string `mapstructure:"log_format"`
}

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

type NatsGateway struct {
	Host        string `mapstructure:"host"`
	GatewayPort int    `mapstructure:"gateway_port"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL