Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayConfig ¶
type GatewayConfig struct {
config.Config
ServerAddress string `env:"SERVER_ADDRESS"`
Metrics Metrics `envPrefix:"METRICS_"`
Tracing Tracing `envPrefix:"TRACING_"`
}
GatewayConfig holds the configuration for gRPC clients. It currently uses env vars, but it can eventually migrate to a different config provider.
func ReadGatewayConfig ¶
func ReadGatewayConfig() (GatewayConfig, error)
ReadGatewayConfig reads the GatewayConfig from environment variables.
type Metrics ¶
type ServerConfig ¶
type ServerConfig struct {
config.Config
DB config.Database `envPrefix:"DATABASE_"`
Metrics Metrics `envPrefix:"METRICS_"`
Tracing Tracing `envPrefix:"TRACING_"`
}
ServerConfig holds the configuration for gRPC servers. It currently uses env vars, but it can eventually migrate to a different config provider.
func ReadServerConfig ¶
func ReadServerConfig() (ServerConfig, error)
ReadServerConfig reads the ServerConfig from environment variables.
func (ServerConfig) Listener ¶
func (c ServerConfig) Listener() (network string, address string)
Listener returns the configuration needed to initialize a net.Listener instance.
Click to show internal directories.
Click to hide internal directories.