config

package
v0.0.0-...-c5d5a31 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Overview

Package config handles configuration settings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaults

func SetDefaults(cfg Provider)

SetDefaults configures some default values

Types

type Provider

type Provider interface {
	SetDefault(key string, value interface{})
	SetTypeByDefaultValue(bool)
	BindPFlag(key string, flg *pflag.Flag) error
	Get(key string) interface{}
	GetString(key string) string
	GetInt(key string) int
	GetStringSlice(key string) []string
}

Provider outlines the configuration methods.

Jump to

Keyboard shortcuts

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