Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceReg ¶
type ServiceReg struct {
// contains filtered or unexported fields
}
创建租约注册服务
func NewServiceReg ¶
func NewServiceReg(addr []string, timeNum int64) *ServiceReg
func NewServiceRegister ¶
func NewServiceRegister(etcd xjtypes.Etcd) *ServiceReg
func (*ServiceReg) PutRpc ¶ added in v0.7.4
func (this *ServiceReg) PutRpc(key, val string) error
通过租约 注册rpc服务
func (*ServiceReg) RegisterService ¶
func (this *ServiceReg) RegisterService(app xjtypes.App) error
Click to show internal directories.
Click to hide internal directories.