zookeeper

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Zlib Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientZk added in v0.1.2

func NewClientZk(eps *config.EndPoints, serviceNode config.Node, timeout int) (*zk.Conn, error)

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 NewServiceWith(cli *zk.Conn, cfg config.Config) (service.Service, error)

func NewZkClient added in v0.1.2

func NewZkClient(conf config.Config, eps config.EndPoints, resol resolver.Resolver) (service.Client, error)

func NewZkClientWith added in v0.1.2

func NewZkClientWith(cli *zk.Conn, conf *config.Config) (service.Client, error)

Types

type Base

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

func (*Base) Get

func (base *Base) Get(key service.Key) ([]*service.Data, error)

Get interface

func (*Base) Set

func (base *Base) Set(data service.Data) error

Set interface

Jump to

Keyboard shortcuts

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