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 ¶
const Module = "registry"
Variables ¶
var (
ErrRegistryNotFound = runtimeerrors.NewStructured("registry", "registry not found")
)
Functions ¶
func Register ¶ added in v0.2.6
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
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
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