discovery

package
v0.0.0-...-05d6cd1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("No Service addresses are found")

Functions

func GenerateInstanceID

func GenerateInstanceID(serviceName string) string

Types

type Registry

type Registry interface {
	Register(ctx context.Context, instanceID string, serviceName string, hostPort string) error

	Deregister(ctx context.Context, instanceID string, serviceName string, hostPort string) error

	ServiceAddresses(ctx context.Context, serviceID string) ([]string, error)

	// ReportHealthyState push mechanism for reporting healthy state to registry
	ReportHealthyState(instanceID string, serviceName string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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