registry

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

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

Package registry contains generated code by adptool.

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

Index

Constants

View Source
const Module = "registry"

Variables

View Source
var (
	ErrRegistryNotFound = runtimeerrors.NewStructured("registry", "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 default factory. It is a convenience wrapper around the internal factory's Register method.

func WithRegistrar added in v0.2.13

func WithRegistrar(r KRegistrar) options.Option

WithRegistrar sets the ServerRegistrar for the service.

Types

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 default factory.

type KRegistrar added in v0.1.18

type KRegistrar = registry.Registrar

func FromOptions added in v0.2.13

func FromOptions(opts ...options.Option) KRegistrar

FromOptions creates a new Options struct by applying a slice of functional options.

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 default factory.

type KServiceInstance added in v0.1.18

type KServiceInstance = registry.ServiceInstance

type KWatcher added in v0.1.18

type KWatcher = registry.Watcher

Jump to

Keyboard shortcuts

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