go-micro: github.com/micro/go-micro/config/source/etcd Index | Files

package etcd

import "github.com/micro/go-micro/config/source/etcd"

Index

Package Files

etcd.go options.go util.go watcher.go

Variables

var (
    DefaultPrefix = "/micro/config/"
)

func Auth Uses

func Auth(username, password string) source.Option

Auth allows you to specify username/password

func NewSource Uses

func NewSource(opts ...source.Option) source.Source

func StripPrefix Uses

func StripPrefix(strip bool) source.Option

StripPrefix indicates whether to remove the prefix from config entries, or leave it in place.

func WithAddress Uses

func WithAddress(a ...string) source.Option

WithAddress sets the etcd address

func WithDialTimeout Uses

func WithDialTimeout(timeout time.Duration) source.Option

WithDialTimeout set the time out for dialing to etcd

func WithPrefix Uses

func WithPrefix(p string) source.Option

WithPrefix sets the key prefix to use

Package etcd imports 11 packages (graph). Updated 2020-01-31. Refresh now. Tools for package owners.