registry

package
v0.1.26 Latest Latest
Warning

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

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

Documentation

Overview

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

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

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

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

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Builder added in v0.1.15

type Builder interface {
	Factory
	RegisterRegistryBuilder(string, Factory)
}

Builder is an interface that defines a method for registering a RegistryBuilder.

func NewBuilder added in v0.1.16

func NewBuilder() Builder

type Configure added in v0.1.19

type Configure interface {
	FromConfig(cfg **configv1.Registry) error
}

type DiscoveryBuildFunc added in v0.1.15

type DiscoveryBuildFunc func(*configv1.Registry, ...OptionSetting) (KDiscovery, error)

DiscoveryBuildFunc is a function type that takes a *config.RegistryConfig and returns a discovery and an error.

func (DiscoveryBuildFunc) NewDiscovery added in v0.1.15

func (fn DiscoveryBuildFunc) NewDiscovery(cfg *configv1.Registry, ss ...OptionSetting) (KDiscovery, error)

NewDiscovery is a method that calls the DiscoveryBuildFunc with the given config.

type Factory added in v0.1.15

type Factory interface {
	NewRegistrar(*configv1.Registry, ...OptionSetting) (KRegistrar, error)
	NewDiscovery(*configv1.Registry, ...OptionSetting) (KDiscovery, error)
}

Factory is an interface that defines methods for creating a discovery and a KRegistrar.

func WrapFactory added in v0.1.15

func WrapFactory(registrar RegistrarBuildFunc, discovery DiscoveryBuildFunc) Factory

type KDiscovery added in v0.1.18

type KDiscovery = registry.Discovery

This is only alias type for wrapped

type KRegistrar added in v0.1.18

type KRegistrar = registry.Registrar

This is only alias type for wrapped

type KServiceInstance added in v0.1.18

type KServiceInstance = registry.ServiceInstance

This is only alias type for wrapped

type KWatcher added in v0.1.18

type KWatcher = registry.Watcher

This is only alias type for wrapped

type Option added in v0.1.0

type Option struct {
	Configure Configure
}

type OptionSetting added in v0.1.0

type OptionSetting = func(o *Option)

func WithConfigure added in v0.1.19

func WithConfigure(cfg Configure) OptionSetting

type RegistrarBuildFunc added in v0.1.15

type RegistrarBuildFunc func(*configv1.Registry, ...OptionSetting) (KRegistrar, error)

RegistrarBuildFunc is a function type that takes a *config.RegistryConfig and returns a KRegistrar and an error.

func (RegistrarBuildFunc) NewRegistrar added in v0.1.15

func (fn RegistrarBuildFunc) NewRegistrar(cfg *configv1.Registry, ss ...OptionSetting) (KRegistrar, error)

NewRegistrar is a method that calls the RegistrarBuildFunc with the given config.

type Registry added in v0.1.15

type Registry interface {
	KRegistrar
	KDiscovery
}

Jump to

Keyboard shortcuts

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