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) (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 OptionSetting ¶ added in v0.1.0
type OptionSetting = func(o *Option)
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 ServiceInstance ¶
type ServiceInstance = registry.ServiceInstance
This is only alias type for wrapped