Documentation ¶
Index ¶
- func NewClient(sn server.Node, eps server.EndPoints) (service.Client, error)
- func NewClient3(eps *server.EndPoints, timeout int) (*clientv3.Client, error)
- func NewClientWith(cli *clientv3.Client, sn server.Node) (service.Client, error)
- func NewService(cfg config.Config, points server.EndPoints) (service.Service, error)
- func NewServiceWith(cli *clientV3.Client, cfg config.Config) (service.Service, error)
- type Base
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWith ¶
func NewService ¶
NewService 注册一个服务
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) AttachWatcher ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.