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 ¶
var (
ErrRegistryNotFound = errors.New("registry not found")
)
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.1.15
Builder is an interface that defines a method for registering a RegistryBuilder.
func NewBuilder ¶ added in v0.1.16
func NewBuilder() Builder
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
This is only alias type for wrapped
type KRegistrar ¶ added in v0.1.18
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 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 }