local

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 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 New

func New(authority string, entries ...*ServiceEntry) *Registry

func (*Registry) Deregister

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

func (*Registry) GetService

func (r *Registry) GetService(_ context.Context, name string) ([]*registry.ServiceInstance, error)

func (*Registry) Register

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

func (*Registry) Watch

func (r *Registry) Watch(_ context.Context, name string) (registry.Watcher, error)

type ServiceEntry

type ServiceEntry struct {
	ID        string
	Name      string
	Endpoints []string
	Version   string
}

func NewServiceEntry

func NewServiceEntry(id, name, version string, endpoints ...string) *ServiceEntry

Jump to

Keyboard shortcuts

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