registry

package
v0.0.0-...-799489d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDup = errors.New("registry: duplicate object")
)

Functions

This section is empty.

Types

type NewConnector

type NewConnector func(opts ...connector.Option) connector.Connector

type NewDialer

type NewDialer func(opts ...dialer.Option) dialer.Dialer

type NewHandler

type NewHandler func(opts ...handler.Option) handler.Handler

type NewListener

type NewListener func(opts ...listener.Option) listener.Listener

type Registry

type Registry[T any] interface {
	Register(name string, v T) error
	Unregister(name string)
	IsRegistered(name string) bool
	Get(name string) T
}

func AdmissionRegistry

func AdmissionRegistry() Registry[admission.Admission]

func AutherRegistry

func AutherRegistry() Registry[auth.Authenticator]

func BypassRegistry

func BypassRegistry() Registry[bypass.Bypass]

func ChainRegistry

func ChainRegistry() Registry[chain.Chainer]

func ConnectorRegistry

func ConnectorRegistry() Registry[NewConnector]

func DialerRegistry

func DialerRegistry() Registry[NewDialer]

func HandlerRegistry

func HandlerRegistry() Registry[NewHandler]

func HostsRegistry

func HostsRegistry() Registry[hosts.HostMapper]

func ListenerRegistry

func ListenerRegistry() Registry[NewListener]

func RecorderRegistry

func RecorderRegistry() Registry[recorder.Recorder]

func ResolverRegistry

func ResolverRegistry() Registry[resolver.Resolver]

func ServiceRegistry

func ServiceRegistry() Registry[service.Service]

Jump to

Keyboard shortcuts

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