Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(key string, typ ConfigType, obj interface{}, watch ...func(string, error)) error
Types ¶
type Config ¶ added in v1.0.3
type Config struct { Path string Type ConfigType Watch []func(string, error) // contains filtered or unexported fields }
type ConfigType ¶
type ConfigType string
const ( Empty = "" Local ConfigType = "config-local" Nacos ConfigType = "config-nacos" )
Click to show internal directories.
Click to hide internal directories.