Documentation ¶
Index ¶
- Variables
- func Auth(username, password string) source.Option
- func NewSource(opts ...source.Option) source.Source
- func StripPrefix(strip bool) source.Option
- func UseDefKey(flag bool) source.Option
- func WithAddress(a ...string) source.Option
- func WithDialTimeout(timeout time.Duration) source.Option
- func WithPrefix(p string) source.Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPrefix = "/micro/config/" DefaultKey = "/default" )
Functions ¶
func StripPrefix ¶
StripPrefix indicates whether to remove the prefix from config entries, or leave it in place.
func UseDefKey ¶ added in v1.2.0
UseDefKey avoid err if no exist keys with prefix put /prefix/default "{}".
func WithDialTimeout ¶
WithDialTimeout set the time out for dialing to etcd.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.