viper

package
v0.0.0-...-db335bc Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Viper

type Viper struct{}

func (Viper) AddConfigPath

func (v Viper) AddConfigPath(in string)

func (Viper) AutomaticEnv

func (v Viper) AutomaticEnv()

func (Viper) ConfigFileUsed

func (v Viper) ConfigFileUsed() string

func (Viper) GetInt64

func (v Viper) GetInt64(key string) int64

func (Viper) GetString

func (v Viper) GetString(key string) string

func (Viper) ReadInConfig

func (v Viper) ReadInConfig() error

func (Viper) Set

func (v Viper) Set(key string, value interface{})

func (Viper) SetConfigFile

func (v Viper) SetConfigFile(in string)

func (Viper) SetConfigName

func (v Viper) SetConfigName(in string)

func (Viper) WriteConfig

func (v Viper) WriteConfig() error

type ViperService

type ViperService interface {
	AddConfigPath(in string)
	AutomaticEnv()
	ConfigFileUsed() string
	GetInt64(key string) int64
	GetString(key string) string
	Set(key string, value interface{})
	SetConfigFile(in string)
	SetConfigName(in string)
	ReadInConfig() error
	WriteConfig() error
}
var Client ViperService = Viper{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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