etcd

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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 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) ListWorkers

func (r *Registry) ListWorkers(ctx context.Context, name string) ([]registry.Instance, error)

func (*Registry) Register

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

func (*Registry) Subscribe

func (r *Registry) Subscribe(name string) <-chan registry.Event

func (*Registry) UnRegister

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

Jump to

Keyboard shortcuts

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