config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package config implements CLI configuration management.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultServerAddress = "[::]:9806"
	DefaultLogLevel      = logrus.InfoLevel
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerAddr   string       `mapstructure:"listen" split_words:"true"`
	LogLevel     logrus.Level `mapstructure:"log_level" split_words:"true"`
	TokenPerHost tokenMap     `mapstructure:"token" envconfig:"token"`
	ExtraMetrics []string     `mapstructure:"extra_metrics" split_words:"true"`
}

func New

func New(args []string) (*Config, error)

Jump to

Keyboard shortcuts

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