registry

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 2 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 interface {
	// Register registers the provided info to the registry.
	Register(ctx context.Context, info ServiceInfo) error
	// UnRegister unregisters the provided info from the registry.
	UnRegister(ctx context.Context, info ServiceInfo) error
	// ResolveBuilder returns a resolver.Builder that will be used to create a resolver for the provided target.
	ResolveBuilder(ctx context.Context) (resolver.Builder, error)
}

Registry is the interface that wraps the basic methods of a registry.

type ServiceInfo

type ServiceInfo struct {
	// Scheme is the scheme of the service.
	Scheme string
	// Addr is the address of the service.
	Addr string
	// Metadata is the metadata of the service.
	Metadata map[string]interface{}
}

ServiceInfo is the interface that wraps the basic methods of a service info.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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