sprawl: github.com/sprawl/sprawl/config Index | Files

package config

import "github.com/sprawl/sprawl/config"


Package Files


type Config Uses

type Config struct {
    Logger interfaces.Logger
    // contains filtered or unexported fields

Config has an initialized version of spf13/viper

func (*Config) Get Uses

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

Get is a proxy for viper.Get()

func (*Config) GetBool Uses

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

GetBool is a proxy for viper.GetUint()

func (*Config) GetString Uses

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

GetString is a proxy for viper.GetString()

func (*Config) GetUint Uses

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

GetUint is a proxy for viper.GetUint()

func (*Config) ReadConfig Uses

func (c *Config) ReadConfig(configPath string)

ReadConfig opens the configuration file and initializes viper

Package config imports 4 packages (graph). Updated 2019-12-12. Refresh now. Tools for package owners.