config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT 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 {
	Logger interfaces.Logger
	// contains filtered or unexported fields
}

Config has an initialized version of spf13/viper

func (*Config) Get

func (c *Config) Get(variable string) interface{}

Get is a proxy for viper.Get()

func (*Config) GetBool

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

GetBool is a proxy for viper.GetUint()

func (*Config) GetString

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

GetString is a proxy for viper.GetString()

func (*Config) GetUint

func (c *Config) GetUint(variable string) uint

GetUint is a proxy for viper.GetUint()

func (*Config) ReadConfig

func (c *Config) ReadConfig(configPath string)

ReadConfig opens the configuration file and initializes viper

Jump to

Keyboard shortcuts

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