config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigWatcherTriger

func AddConfigWatcherTriger(iocc IOnConfigChange)

func DelConfigWatcherTriger

func DelConfigWatcherTriger(iocc IOnConfigChange)

func GetConfig

func GetConfig() *viper.Viper

func GetInt

func GetInt(s string, defaultValue int) int

func GetInt64

func GetInt64(s string, defaultValue int64) int64

func GetString

func GetString(s, defaultValue string) string

func Init

func Init(env string, cfgPath string)

func SetConfig

func SetConfig(c *viper.Viper)

Types

type IOnConfigChange

type IOnConfigChange interface {
	OnConfigChange()
}

Jump to

Keyboard shortcuts

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