zookeeper

package
v0.0.0-...-a23f37e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *options)

Option is etcd registry option.

func WithDigestACL

func WithDigestACL(user string, password string) Option

WithDigestACL with registry password.

func WithRootPath

func WithRootPath(path string) Option

WithRootPath with registry root path.

type ZookeeperRegistry

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

ZookeeperRegistry is consul registry

func NewDefaultZookeeperRegistry

func NewDefaultZookeeperRegistry(reg *regOps.RegistryOptions, opts ...Option) *ZookeeperRegistry

func NewZookeeperRegistry

func NewZookeeperRegistry(conn *zk.Conn, opts ...Option) *ZookeeperRegistry

func (*ZookeeperRegistry) Deregister

func (r *ZookeeperRegistry) Deregister(ctx context.Context, service *registry.ServiceInstance) error

Deregister registry service to zookeeper.

func (*ZookeeperRegistry) Register

Jump to

Keyboard shortcuts

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