zk

package
v0.0.0-...-7a5359b Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New Create a registry client for a scenario using the zookeeper

Types

type RegistryClient

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

RegistryClient ...

func (*RegistryClient) AccessorEvents

func (c *RegistryClient) AccessorEvents() <-chan *types.ServiceEvent

AccessorEvents this channel will spawn the accessor changing events.

func (*RegistryClient) GetCachedScopedMapping

func (c *RegistryClient) GetCachedScopedMapping(scopedKey string) map[string]struct{}

GetCachedScopedMapping ...

func (*RegistryClient) GetCachedService

func (c *RegistryClient) GetCachedService(serviceName string) *types.Service

GetCachedService ...

func (*RegistryClient) Instances

func (c *RegistryClient) Instances(hostname string) []*types.Instance

Instances ...

func (*RegistryClient) InstancesByHost

func (c *RegistryClient) InstancesByHost(hosts []string) []*types.Instance

InstancesByHost ...

func (*RegistryClient) Service

func (c *RegistryClient) Service(hostname string) *types.Service

Service ...

func (*RegistryClient) ServiceEvents

func (c *RegistryClient) ServiceEvents() <-chan *types.ServiceEvent

ServiceEvents channel is a stream of Service and instance updates

func (*RegistryClient) Services

func (c *RegistryClient) Services() []*types.Service

Services ...

func (*RegistryClient) Start

func (c *RegistryClient) Start() error

Start ...

func (*RegistryClient) Stop

func (c *RegistryClient) Stop()

Stop ...

Jump to

Keyboard shortcuts

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