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) ListenLeaseRespChan ¶
func (s *ServiceRegister) ListenLeaseRespChan() <-chan *clientv3.LeaseKeepAliveResponse
ListenLeaseRespChan 监听续租情况
Click to show internal directories.
Click to hide internal directories.