config

package
v0.0.0-...-a03fb21 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 2 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 {
}

Configuration wrapper on top of simple environment variables or spf13/viper

func (*Config) Get

func (cfg *Config) Get(key string) interface{}

func (*Config) GetBool

func (cfg *Config) GetBool(key string) bool

func (*Config) GetDuration

func (cfg *Config) GetDuration(key string) time.Duration

func (*Config) GetFloat64

func (cfg *Config) GetFloat64(key string) float64

func (*Config) GetInt

func (cfg *Config) GetInt(key string) int

func (*Config) GetString

func (cfg *Config) GetString(key string) string

func (*Config) GetStringMap

func (cfg *Config) GetStringMap(key string) map[string]interface{}

func (*Config) GetStringMapString

func (cfg *Config) GetStringMapString(key string) map[string]string

func (*Config) GetStringSlice

func (cfg *Config) GetStringSlice(key string) []string

func (*Config) GetTime

func (cfg *Config) GetTime(key string) time.Time

func (*Config) IsSet

func (cfg *Config) IsSet(key string) bool

func (*Config) Set

func (cfg *Config) Set(key string, value interface{})

Jump to

Keyboard shortcuts

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