registry

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

Package registry contains generated code by adptool.

Package registry implements the functions, types, and interfaces for the module.

Package registry implements a pluggable mechanism for service registration and discovery.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRegistryNotFound = errors.New("registry not found")
)

Functions

func Register added in v0.2.6

func Register(name string, factory Factory)

Register registers a new registry factory with the DefaultBuilder. It is a convenience wrapper around the builder's Register method.

Types

type Builder added in v0.1.15

type Builder interface {
	factory.Registry[Factory]
	Factory
}

func DefaultBuilder added in v0.2.1

func DefaultBuilder() Builder

DefaultBuilder returns the shared instance of the registry builder.

type Factory added in v0.1.15

type Factory interface {
	NewRegistrar(*discoveryv1.Discovery, ...options.Option) (KRegistrar, error)
	NewDiscovery(*discoveryv1.Discovery, ...options.Option) (KDiscovery, error)
}

Factory is the interface for creating new registrar and discovery components.

type KDiscovery added in v0.1.18

type KDiscovery = registry.Discovery

func NewDiscovery added in v0.2.6

func NewDiscovery(cfg *discoveryv1.Discovery, opts ...options.Option) (KDiscovery, error)

NewDiscovery creates a new KDiscovery instance using the DefaultBuilder.

type KRegistrar added in v0.1.18

type KRegistrar = registry.Registrar

func NewRegistrar added in v0.2.6

func NewRegistrar(cfg *discoveryv1.Discovery, opts ...options.Option) (KRegistrar, error)

NewRegistrar creates a new KRegistrar instance using the DefaultBuilder.

type KServiceInstance added in v0.1.18

type KServiceInstance = registry.ServiceInstance

type KWatcher added in v0.1.18

type KWatcher = registry.Watcher

type Registry added in v0.1.15

type Registry interface {
	KRegistrar
	KDiscovery
}

Registry defines the interface for service registration and discovery.

Jump to

Keyboard shortcuts

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