Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrDuplication is a register duplication err ErrDuplication = errors.New("etcd: instance duplicate registration") )
Functions ¶
Types ¶
type EtcdBuilder ¶
type EtcdBuilder struct {
// contains filtered or unexported fields
}
EtcdBuilder is a etcd clientv3 EtcdBuilder
func (*EtcdBuilder) Build ¶
func (e *EtcdBuilder) Build(appid string) naming.Resolver
Build disovery resovler builder.
func (*EtcdBuilder) Close ¶
func (e *EtcdBuilder) Close() error
Close stop all running process including etcdfetch and register
func (*EtcdBuilder) Register ¶
func (e *EtcdBuilder) Register(ctx context.Context, ins *naming.Instance) (cancelFunc context.CancelFunc, err error)
Register is register instance
Click to show internal directories.
Click to hide internal directories.