jsonConfig

package
v0.0.0-...-7aedd83 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigByKey

func GetConfigByKey(keys string) (value interface{}, err error)

GetConfigByKey read key value from configMap, support `.`

func LoadConfigFromData

func LoadConfigFromData(data []byte) (err error)

LoadConfigFromData read config from []byte, and store it into configMap

func LoadConfigFromFile

func LoadConfigFromFile(filename string) (err error)

LoadConfigFromFile read config from json file

func LoadConfigFromFileAndWatch

func LoadConfigFromFileAndWatch() (err error)

LoadConfigFromFileAndWatch read configuration from json file, and through the -w flag to decide whether to watch the signal

func PrintConfig

func PrintConfig()

PrintConfig display all configs

func ReloadConfig

func ReloadConfig() (err error)

ReloadConfig reload config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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