registry

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type AdmissionRegistry

type AdmissionRegistry struct {
	// contains filtered or unexported fields
}

func (*AdmissionRegistry) Get

func (*AdmissionRegistry) GetAll

func (r *AdmissionRegistry) GetAll() (m map[string]T)

func (*AdmissionRegistry) IsRegistered

func (r *AdmissionRegistry) IsRegistered(name string) bool

func (*AdmissionRegistry) Register

func (r *AdmissionRegistry) Register(name string, v admission.IAdmission) error

func (*AdmissionRegistry) Unregister

func (r *AdmissionRegistry) Unregister(name string)

type AutherRegistry

type AutherRegistry struct {
	// contains filtered or unexported fields
}

func (*AutherRegistry) Get

func (*AutherRegistry) GetAll

func (r *AutherRegistry) GetAll() (m map[string]T)

func (*AutherRegistry) IsRegistered

func (r *AutherRegistry) IsRegistered(name string) bool

func (*AutherRegistry) Register

func (r *AutherRegistry) Register(name string, v auth.IAuthenticator) error

func (*AutherRegistry) Unregister

func (r *AutherRegistry) Unregister(name string)

type BypassRegistry

type BypassRegistry struct {
	// contains filtered or unexported fields
}

func (*BypassRegistry) Get

func (r *BypassRegistry) Get(name string) bypass.IBypass

func (*BypassRegistry) GetAll

func (r *BypassRegistry) GetAll() (m map[string]T)

func (*BypassRegistry) IsRegistered

func (r *BypassRegistry) IsRegistered(name string) bool

func (*BypassRegistry) Register

func (r *BypassRegistry) Register(name string, v bypass.IBypass) error

func (*BypassRegistry) Unregister

func (r *BypassRegistry) Unregister(name string)

type ChainRegistry

type ChainRegistry struct {
	// contains filtered or unexported fields
}

func (*ChainRegistry) Get

func (r *ChainRegistry) Get(name string) chain.IChainer

func (*ChainRegistry) GetAll

func (r *ChainRegistry) GetAll() (m map[string]T)

func (*ChainRegistry) IsRegistered

func (r *ChainRegistry) IsRegistered(name string) bool

func (*ChainRegistry) Register

func (r *ChainRegistry) Register(name string, v chain.IChainer) error

func (*ChainRegistry) Unregister

func (r *ChainRegistry) Unregister(name string)

type ConnLimiterRegistry

type ConnLimiterRegistry struct {
	// contains filtered or unexported fields
}

func (*ConnLimiterRegistry) Get

func (*ConnLimiterRegistry) GetAll

func (r *ConnLimiterRegistry) GetAll() (m map[string]T)

func (*ConnLimiterRegistry) IsRegistered

func (r *ConnLimiterRegistry) IsRegistered(name string) bool

func (*ConnLimiterRegistry) Register

func (r *ConnLimiterRegistry) Register(name string, v conn.IConnLimiter) error

func (*ConnLimiterRegistry) Unregister

func (r *ConnLimiterRegistry) Unregister(name string)

type ConnectorRegistry

type ConnectorRegistry struct {
	// contains filtered or unexported fields
}

func (*ConnectorRegistry) Get

func (r *ConnectorRegistry) Get(name string) (t T)

func (*ConnectorRegistry) GetAll

func (r *ConnectorRegistry) GetAll() (m map[string]T)

func (*ConnectorRegistry) IsRegistered

func (r *ConnectorRegistry) IsRegistered(name string) bool

func (*ConnectorRegistry) Register

func (r *ConnectorRegistry) Register(name string, v connector.NewConnector) error

func (*ConnectorRegistry) Unregister

func (r *ConnectorRegistry) Unregister(name string)

type DialerRegistry

type DialerRegistry struct {
	// contains filtered or unexported fields
}

func (*DialerRegistry) Get

func (r *DialerRegistry) Get(name string) (t T)

func (*DialerRegistry) GetAll

func (r *DialerRegistry) GetAll() (m map[string]T)

func (*DialerRegistry) IsRegistered

func (r *DialerRegistry) IsRegistered(name string) bool

func (*DialerRegistry) Register

func (r *DialerRegistry) Register(name string, v dialer.NewDialer) error

func (*DialerRegistry) Unregister

func (r *DialerRegistry) Unregister(name string)

type HandlerRegistry

type HandlerRegistry struct {
	// contains filtered or unexported fields
}

func (*HandlerRegistry) Get

func (r *HandlerRegistry) Get(name string) (t T)

func (*HandlerRegistry) GetAll

func (r *HandlerRegistry) GetAll() (m map[string]T)

func (*HandlerRegistry) IsRegistered

func (r *HandlerRegistry) IsRegistered(name string) bool

func (*HandlerRegistry) Register

func (r *HandlerRegistry) Register(name string, v handler.NewHandler) error

func (*HandlerRegistry) Unregister

func (r *HandlerRegistry) Unregister(name string)

type HopRegistry

type HopRegistry struct {
	// contains filtered or unexported fields
}

func (*HopRegistry) Get

func (r *HopRegistry) Get(name string) hop.IHop

func (*HopRegistry) GetAll

func (r *HopRegistry) GetAll() (m map[string]T)

func (*HopRegistry) IsRegistered

func (r *HopRegistry) IsRegistered(name string) bool

func (*HopRegistry) Register

func (r *HopRegistry) Register(name string, v hop.IHop) error

func (*HopRegistry) Unregister

func (r *HopRegistry) Unregister(name string)

type HostsRegistry

type HostsRegistry struct {
	// contains filtered or unexported fields
}

func (*HostsRegistry) Get

func (r *HostsRegistry) Get(name string) hosts.IHostMapper

func (*HostsRegistry) GetAll

func (r *HostsRegistry) GetAll() (m map[string]T)

func (*HostsRegistry) IsRegistered

func (r *HostsRegistry) IsRegistered(name string) bool

func (*HostsRegistry) Register

func (r *HostsRegistry) Register(name string, v hosts.IHostMapper) error

func (*HostsRegistry) Unregister

func (r *HostsRegistry) Unregister(name string)

type IngressRegistry

type IngressRegistry struct {
	// contains filtered or unexported fields
}

func (*IngressRegistry) Get

func (r *IngressRegistry) Get(name string) ingress.IIngress

func (*IngressRegistry) GetAll

func (r *IngressRegistry) GetAll() (m map[string]T)

func (*IngressRegistry) IsRegistered

func (r *IngressRegistry) IsRegistered(name string) bool

func (*IngressRegistry) Register

func (r *IngressRegistry) Register(name string, v ingress.IIngress) error

func (*IngressRegistry) Unregister

func (r *IngressRegistry) Unregister(name string)

type ListenerRegistry

type ListenerRegistry struct {
	// contains filtered or unexported fields
}

func (*ListenerRegistry) Get

func (r *ListenerRegistry) Get(name string) (t T)

func (*ListenerRegistry) GetAll

func (r *ListenerRegistry) GetAll() (m map[string]T)

func (*ListenerRegistry) IsRegistered

func (r *ListenerRegistry) IsRegistered(name string) bool

func (*ListenerRegistry) Register

func (r *ListenerRegistry) Register(name string, v listener.NewListener) error

func (*ListenerRegistry) Unregister

func (r *ListenerRegistry) Unregister(name string)

type LoggerRegistry

type LoggerRegistry struct {
	// contains filtered or unexported fields
}

func (*LoggerRegistry) Get

func (r *LoggerRegistry) Get(name string) (t T)

func (*LoggerRegistry) GetAll

func (r *LoggerRegistry) GetAll() (m map[string]T)

func (*LoggerRegistry) IsRegistered

func (r *LoggerRegistry) IsRegistered(name string) bool

func (*LoggerRegistry) Register

func (r *LoggerRegistry) Register(name string, v logger.ILogger) error

func (*LoggerRegistry) Unregister

func (r *LoggerRegistry) Unregister(name string)

type ObserverRegistry added in v0.0.5

type ObserverRegistry struct {
	// contains filtered or unexported fields
}

func (*ObserverRegistry) Get added in v0.0.5

func (*ObserverRegistry) GetAll added in v0.0.5

func (r *ObserverRegistry) GetAll() (m map[string]T)

func (*ObserverRegistry) IsRegistered added in v0.0.5

func (r *ObserverRegistry) IsRegistered(name string) bool

func (*ObserverRegistry) Register added in v0.0.5

func (r *ObserverRegistry) Register(name string, v observer.IObserver) error

func (*ObserverRegistry) Unregister added in v0.0.5

func (r *ObserverRegistry) Unregister(name string)

type RateLimiterRegistry

type RateLimiterRegistry struct {
	// contains filtered or unexported fields
}

func (*RateLimiterRegistry) Get

func (*RateLimiterRegistry) GetAll

func (r *RateLimiterRegistry) GetAll() (m map[string]T)

func (*RateLimiterRegistry) IsRegistered

func (r *RateLimiterRegistry) IsRegistered(name string) bool

func (*RateLimiterRegistry) Register

func (r *RateLimiterRegistry) Register(name string, v rate.IRateLimiter) error

func (*RateLimiterRegistry) Unregister

func (r *RateLimiterRegistry) Unregister(name string)

type RecorderRegistry

type RecorderRegistry struct {
	// contains filtered or unexported fields
}

func (*RecorderRegistry) Get

func (*RecorderRegistry) GetAll

func (r *RecorderRegistry) GetAll() (m map[string]T)

func (*RecorderRegistry) IsRegistered

func (r *RecorderRegistry) IsRegistered(name string) bool

func (*RecorderRegistry) Register

func (r *RecorderRegistry) Register(name string, v recorder.IRecorder) error

func (*RecorderRegistry) Unregister

func (r *RecorderRegistry) Unregister(name string)

type ResolverRegistry

type ResolverRegistry struct {
	// contains filtered or unexported fields
}

func (*ResolverRegistry) Get

func (*ResolverRegistry) GetAll

func (r *ResolverRegistry) GetAll() (m map[string]T)

func (*ResolverRegistry) IsRegistered

func (r *ResolverRegistry) IsRegistered(name string) bool

func (*ResolverRegistry) Register

func (r *ResolverRegistry) Register(name string, v resolver.IResolver) error

func (*ResolverRegistry) Unregister

func (r *ResolverRegistry) Unregister(name string)

type RouterRegistry

type RouterRegistry struct {
	// contains filtered or unexported fields
}

func (*RouterRegistry) Get

func (r *RouterRegistry) Get(name string) router.IRouter

func (*RouterRegistry) GetAll

func (r *RouterRegistry) GetAll() (m map[string]T)

func (*RouterRegistry) IsRegistered

func (r *RouterRegistry) IsRegistered(name string) bool

func (*RouterRegistry) Register

func (r *RouterRegistry) Register(name string, v router.IRouter) error

func (*RouterRegistry) Unregister

func (r *RouterRegistry) Unregister(name string)

type SdRegistry

type SdRegistry struct {
	// contains filtered or unexported fields
}

func (*SdRegistry) Get

func (r *SdRegistry) Get(name string) sd.ISD

func (*SdRegistry) GetAll

func (r *SdRegistry) GetAll() (m map[string]T)

func (*SdRegistry) IsRegistered

func (r *SdRegistry) IsRegistered(name string) bool

func (*SdRegistry) Register

func (r *SdRegistry) Register(name string, v sd.ISD) error

func (*SdRegistry) Unregister

func (r *SdRegistry) Unregister(name string)

type ServiceRegistry

type ServiceRegistry struct {
	// contains filtered or unexported fields
}

func (*ServiceRegistry) Get

func (r *ServiceRegistry) Get(name string) (t T)

func (*ServiceRegistry) GetAll

func (r *ServiceRegistry) GetAll() (m map[string]T)

func (*ServiceRegistry) IsRegistered

func (r *ServiceRegistry) IsRegistered(name string) bool

func (*ServiceRegistry) Register

func (r *ServiceRegistry) Register(name string, v T) error

func (*ServiceRegistry) Unregister

func (r *ServiceRegistry) Unregister(name string)

type TrafficLimiterRegistry

type TrafficLimiterRegistry struct {
	// contains filtered or unexported fields
}

func (*TrafficLimiterRegistry) Get

func (*TrafficLimiterRegistry) GetAll

func (r *TrafficLimiterRegistry) GetAll() (m map[string]T)

func (*TrafficLimiterRegistry) IsRegistered

func (r *TrafficLimiterRegistry) IsRegistered(name string) bool

func (*TrafficLimiterRegistry) Register

func (*TrafficLimiterRegistry) Unregister

func (r *TrafficLimiterRegistry) Unregister(name string)

Jump to

Keyboard shortcuts

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