registry

package
v0.1.16 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 Discovery

type Discovery = registry.Discovery

This is only alias type for wrapped

type DiscoveryBuildFunc added in v0.1.15

type DiscoveryBuildFunc func(*configv1.Registry, ...OptionSetting) (Discovery, 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) (Discovery, 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) (Registrar, error)
	NewDiscovery(*configv1.Registry, ...OptionSetting) (Discovery, error)
}

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

func WrapFactory added in v0.1.15

func WrapFactory(registrar RegistrarBuildFunc, discovery DiscoveryBuildFunc) Factory

type Option added in v0.1.0

type Option struct {
}

type OptionSetting added in v0.1.0

type OptionSetting = func(o *Option)

type Registrar

type Registrar = registry.Registrar

This is only alias type for wrapped

type RegistrarBuildFunc added in v0.1.15

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

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

func (RegistrarBuildFunc) NewRegistrar added in v0.1.15

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

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

type Registry added in v0.1.15

type Registry interface {
	Registrar
	Discovery
}

type ServiceInstance

type ServiceInstance = registry.ServiceInstance

This is only alias type for wrapped

type Watcher

type Watcher = registry.Watcher

This is only alias type for wrapped

Jump to

Keyboard shortcuts

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