discovery

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyID   = errors.New("service id cannot be empty")
	ErrEmptyName = errors.New("service name cannot be empty")
)

Functions

This section is empty.

Types

type ConsulDiscovery

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

func NewConsulDiscovery

func NewConsulDiscovery(service micro.Service, check api.AgentServiceCheck, client *api.Client) *ConsulDiscovery

func (*ConsulDiscovery) RegisterService

func (d *ConsulDiscovery) RegisterService() error

func (*ConsulDiscovery) UnregisterService

func (d *ConsulDiscovery) UnregisterService() error

type Discovery

type Discovery interface {
	RegisterService() error
	UnregisterService() error
}

Jump to

Keyboard shortcuts

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