Documentation ¶
Index ¶
- func NewClientZk(eps *config.EndPoints, serviceNode config.Node, timeout int) (*zk.Conn, error)
- func NewService(cfg config.Config, points config.EndPoints, registry registry.Registry) (service.Service, error)
- func NewServiceWith(cli *zk.Conn, cfg config.Config) (service.Service, error)
- func NewZkClient(conf config.Config, eps config.EndPoints, resol resolver.Resolver) (service.Client, error)
- func NewZkClientWith(cli *zk.Conn, conf *config.Config) (service.Client, error)
- type Base
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientZk ¶ added in v0.1.2
func NewService ¶
func NewService(cfg config.Config, points config.EndPoints, registry registry.Registry) (service.Service, error)
NewService 注册一个服务
func NewServiceWith ¶ added in v0.1.2
func NewZkClient ¶ added in v0.1.2
Types ¶
Click to show internal directories.
Click to hide internal directories.