Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc func(ctx context.Context, event model.HandlerContext) error
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) GetHandler ¶
func (r *Registry) GetHandler(eventName string) HandlerFunc
func (*Registry) Register ¶
func (r *Registry) Register(eventName string, f HandlerFunc)
Click to show internal directories.
Click to hide internal directories.