config

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 5 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 interface {
	GetString(key string) string
	GetStringList(key string) []string
	GetDuration(key string, def time.Duration) time.Duration
	GetInt(key string, def int) int
	GetBool(key string, def bool) bool
}

type EnvConfig

type EnvConfig struct {
	// contains filtered or unexported fields
}

func NewEnvConfig

func NewEnvConfig(log logutil.Log) *EnvConfig

func (EnvConfig) GetBool

func (c EnvConfig) GetBool(key string, def bool) bool

func (EnvConfig) GetDuration

func (c EnvConfig) GetDuration(key string, def time.Duration) time.Duration

func (EnvConfig) GetInt

func (c EnvConfig) GetInt(key string, def int) int

func (EnvConfig) GetString

func (c EnvConfig) GetString(key string) string

func (EnvConfig) GetStringList

func (c EnvConfig) GetStringList(key string) []string

Jump to

Keyboard shortcuts

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