Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHandlerNotFound = errors.New("handler not found")
Functions ¶
This section is empty.
Types ¶
type HandlerRegistry ¶
type HandlerRegistry struct {
// contains filtered or unexported fields
}
func DefaultRegistry ¶
func DefaultRegistry() *HandlerRegistry
func (*HandlerRegistry) GetHandler ¶
func (r *HandlerRegistry) GetHandler(hook *v1.Hook) (Handler, error)
func (*HandlerRegistry) RegisterHandler ¶
func (r *HandlerRegistry) RegisterHandler(handler Handler)
RegisterHandler registers a handler with the default registry.
Click to show internal directories.
Click to hide internal directories.