Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct{}
type Option ¶
type Option struct { DataID string Group string Suffix string EnableWatch bool Logger baselogger.Logger }
func SetEnableWatch ¶
func SetLogger ¶
func SetLogger(l baselogger.Logger) *Option
func (*Option) MergeOption ¶
func (*Option) SetEnableWatch ¶
type Source ¶
type Source struct { Client config_client.IConfigClient DataID string Group string Suffix string EnableWatch bool Logger baselogger.Logger // contains filtered or unexported fields }
Source etcd provider.
func NewSource ¶
func NewSource(client config_client.IConfigClient, opts ...*Option) (*Source, error)
NewSource returns new Source.
func (*Source) ConfigChanged ¶
IsConfigChanged ...
func (*Source) ReadConfig ¶
ReadConfig ...
Click to show internal directories.
Click to hide internal directories.