etcd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 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 InitRegister

func InitRegister(c *client3.Client) (*Registry, error)

func (*Registry) Close

func (r *Registry) Close() error

func (*Registry) ListServices

func (r *Registry) ListServices(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