Documentation ¶
Index ¶
- Variables
- func MatchPrefix() kvstore.Option
- func New(opts ...kvstore.Option) (kvstore.KV, error)
- func WatchKey(key string) kvstore.Option
- func WithAddress(a ...string) kvstore.Option
- func WithAuth(username, password string) kvstore.Option
- func WithContext(ctx context.Context) kvstore.Option
- func WithDialTimeout(timeout time.Duration) kvstore.Option
- func WithPrefix(p string) kvstore.Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultPrefix = "/caesar/kvstore/"
)
Functions ¶
func WithContext ¶
WithContext sets the etcd address.
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.