Versions in this module Expand all Collapse all v0 v0.16.0 Apr 28, 2023 Changes in this version + var StopPropagation = errors.New("Event hook propagation stopped") + type Handler func(e T) error + type Hook struct + func (h *Hook[T]) Add(fn Handler[T]) + func (h *Hook[T]) PreAdd(fn Handler[T]) + func (h *Hook[T]) Reset() + func (h *Hook[T]) Trigger(data T, oneOffHandlers ...Handler[T]) error + type TaggedHook struct + func NewTaggedHook(hook *Hook[T], tags ...string) *TaggedHook[T] + func (h *TaggedHook[T]) Add(fn Handler[T]) + func (h *TaggedHook[T]) CanTriggerOn(tags []string) bool + func (h *TaggedHook[T]) PreAdd(fn Handler[T]) + type Tagger interface + Tags func() []string