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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWatcherStopped = errors.New("watcher stopped")

Functions

This section is empty.

Types

type ZookeeperDiscovery

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

func NewZookeeperDiscovery

func NewZookeeperDiscovery(options *regOps.DiscoveryOptions) *ZookeeperDiscovery

func (*ZookeeperDiscovery) GetService

func (d *ZookeeperDiscovery) GetService(ctx context.Context, serviceName string) ([]*registry.ServiceInstance, error)

GetService get services from zookeeper

func (*ZookeeperDiscovery) Watch

func (d *ZookeeperDiscovery) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)

Jump to

Keyboard shortcuts

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