config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config handles getting configuration from the environment and/or from file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port         string        `mapstructure:"port"`
	Path         string        `mapstructure:"path"`
	InCluster    bool          `mapstructure:"inCluster"`
	Interval     time.Duration `mapstructure:"interval"`
	LogLevel     string        `mapstructure:"logLevel"`
	LogMode      string        `mapstructure:"logMode"`
	Namespace    string        `mapstructure:"namespace"`
	ReadTimeout  time.Duration `mapstructure:"readTimeout"`
	WriteTimeout time.Duration `mapstructure:"writeTimeout"`
}

func New

func New(configFile string) *Config

New returns a new Config struct

Jump to

Keyboard shortcuts

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