register

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceRegister

type ServiceRegister struct {
	// contains filtered or unexported fields
}

ServiceRegister 创建租约注册服务

func NewServiceRegister

func NewServiceRegister(endpoints []string, key, val string, lease int64) (*ServiceRegister, error)

NewServiceRegister 新建注册服务

func (*ServiceRegister) Close

func (s *ServiceRegister) Close() error

Close 注销服务

func (*ServiceRegister) ListenLeaseRespChan

func (s *ServiceRegister) ListenLeaseRespChan() <-chan *clientv3.LeaseKeepAliveResponse

ListenLeaseRespChan 监听续租情况

Jump to

Keyboard shortcuts

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