config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeNacosClient

func GeNacosClient() config_client.IConfigClient

func GeNacosConfig

func GeNacosConfig() *gjson.Result

func GetArrayInt64

func GetArrayInt64(name string) []int64

func GetArrayString

func GetArrayString(name string) []string

func GetBool

func GetBool(name string, defaultValues ...bool) bool

func GetInt

func GetInt(name string, defaultValues ...int) int

func GetInt64

func GetInt64(name string, defaultValues ...int64) int64

func GetLocal

func GetLocal() *localEnv

func GetLocalConfig

func GetLocalConfig() *gjson.Result

func GetString

func GetString(name string, defaultValues ...string) string

func GetStruct

func GetStruct(name string, dst interface{}) error

func GetValue

func GetValue(val string) string

func InitByJson

func InitByJson(data *gjson.Result)

基于json字符串初始化

func InitByLocal

func InitByLocal()

基于本地文件初始化配置

Types

This section is empty.

Jump to

Keyboard shortcuts

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