discovery

package
v0.0.0-...-cb92cc7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery interface {
	GetService(ctx context.Context, filter string) ([]*registry.ServiceInstance, error)
	Watch(ctx context.Context, filter string) (registry.Watcher, error)
}

type Registry

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

func New

func New(config *api.Config) (_ *Registry, err error)

func (*Registry) Deregister

func (t *Registry) Deregister(_ context.Context, service *registry.ServiceInstance) error

func (*Registry) GetService

func (t *Registry) GetService(ctx context.Context, filter string) (out []*registry.ServiceInstance, err error)

func (*Registry) Register

func (t *Registry) Register(_ context.Context, service *registry.ServiceInstance) error

func (*Registry) Watch

func (t *Registry) Watch(ctx context.Context, filter string) (registry.Watcher, error)

Jump to

Keyboard shortcuts

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