Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Renderer RendererConfig GRPC GRPCConfig GRPCHealthCheck GRPCHealthCheckConfig HTTP HTTPConfig Metrics MetricsConfig }
Config represents application config.
func NewFromEnv ¶
func NewFromEnv() Config
NewFromEnv creates a new Config from environment variables.
type GRPCConfig ¶ added in v0.1.0
GRPCConfig contains lc-api gRPC related configuration.
type GRPCHealthCheckConfig ¶ added in v0.1.0
type GRPCHealthCheckConfig struct {
Address string
}
GRPCHealthCheckConfig contains lc-api gRPC health check related configuration.
type HTTPConfig ¶ added in v0.1.0
type HTTPConfig struct { Address string ShutdownTimeoutSeconds int ReadTimeoutSeconds int WriteTimeoutSeconds int IdleTimeoutSeconds int }
HTTPConfig contains lc-api HTTP related configuration.
type MetricsConfig ¶ added in v0.1.0
type MetricsConfig struct { Address string ShutdownTimeoutSeconds int ReadTimeoutSeconds int WriteTimeoutSeconds int IdleTimeoutSeconds int }
MetricsConfig contains lc-api metrics related configuration.
type RendererConfig ¶
RendererConfig contains lc-renderer related configuration.
Click to show internal directories.
Click to hide internal directories.