etcd

package
v0.1.66 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry(c *clientv3.Client) (*Registry, error)

func (*Registry) Close

func (r *Registry) Close() error

func (*Registry) ListService

func (r *Registry) ListService(ctx context.Context, serviceName string) ([]registry.ServiceInstance, error)

func (*Registry) Register

func (r *Registry) Register(ctx context.Context, si registry.ServiceInstance) error

func (*Registry) Subscribe

func (r *Registry) Subscribe(serviceName string) (<-chan registry.Event, error)

func (*Registry) UnRegister

func (r *Registry) UnRegister(ctx context.Context, si registry.ServiceInstance) error

Jump to

Keyboard shortcuts

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