config

package
v0.0.0-...-17aa378 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2019 License: MIT Imports: 1 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 {
	Debug             bool
	TelemetryPort     int    `envconfig:"TELEMETRY_PORT" default:"9116"`
	TelemetryEndpoint string `envconfig:"TELEMETRY_ENDPOINT" default:"/metrics"`
	ClickHouseDSN     string `envconfig:"CLICKHOUSE_DSN" required:"true"`
}

Config

func NewFromEnv

func NewFromEnv() (*Config, error)

NewContext creates a config from env.

Jump to

Keyboard shortcuts

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