config

package
v0.0.0-...-3149a5f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 4 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 {
	Viper *viper.Viper
	Order []string
}

func New

func New(viper *viper.Viper, prefixes ...string) *Config

func (*Config) GetBool

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

func (*Config) GetDuration

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

func (*Config) GetIfiList

func (c *Config) GetIfiList(key string) []*net.Interface

func (*Config) GetString

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

func (*Config) GetStringSlice

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

func (*Config) GetUDP4Addr

func (c *Config) GetUDP4Addr(key string) *net.UDPAddr

Jump to

Keyboard shortcuts

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