etcdv3

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(etcdAddr string, tls *tls.Config) resolver.Builder

NewResolver initialize an etcd client

func Register

func Register(etcdAddr string, name string, addr string, ttl int64, tls *tls.Config) error

Register register service with name as prefix to etcd, multi etcd addr should use ; to split

func UnRegister

func UnRegister(name string, addr string) error

UnRegister remove service from etcd

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL