config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 2 Imported by: 0

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

type GRPCConfig struct {
	Address                string
	ShutdownTimeoutSeconds int
}

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

type RendererConfig struct {
	Address               string
	ConnTimeoutSeconds    int
	RequestTimeoutSeconds int
}

RendererConfig contains lc-renderer related configuration.

Jump to

Keyboard shortcuts

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