Documentation ¶
Overview ¶
Package registrations provides a hierarchical namespace for denoting any kind of handlers to be registered on some target. Handlers are denoted by names evaluated by HandlerRegistrationHandler Such a registration handler is responsible vor a complete sub namespace and may delegate the evaluation to nested handler mounted on a sub namespace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerConfig ¶
type HandlerConfig interface{}
type HandlerRegistrationRegistry ¶
type HandlerRegistrationRegistry[T any, O any] interface { HandlerRegistrationHandler[T, O] RegisterRegistrationHandler(path string, handler HandlerRegistrationHandler[T, O]) GetRegistrationHandlers(name string) []*RegistrationHandlerInfo[T, O] }
func NewHandlerRegistrationRegistry ¶
func NewHandlerRegistrationRegistry[T any, O any](base ...HandlerRegistrationRegistry[T, O]) HandlerRegistrationRegistry[T, O]
type RegistrationHandlerInfo ¶
func NewRegistrationHandlerInfo ¶
func NewRegistrationHandlerInfo[T any, O any](path string, handler HandlerRegistrationHandler[T, O]) *RegistrationHandlerInfo[T, O]
func (*RegistrationHandlerInfo[T, O]) RegisterByName ¶
func (i *RegistrationHandlerInfo[T, O]) RegisterByName(handler string, target T, config HandlerConfig, opts ...O) (bool, error)
Click to show internal directories.
Click to hide internal directories.