Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEvent ¶
type DeleteEvent ¶
type Generator ¶
func NewGenerator ¶
type GeneratorOptions ¶
type GenericEvent ¶
type Handler ¶
type Handler[O orimeta.Object] interface { Create(event CreateEvent[O]) Update(event UpdateEvent[O]) Delete(event DeleteEvent[O]) Generic(event GenericEvent[O]) }
type HandlerFuncs ¶
type HandlerFuncs[O orimeta.Object] struct { CreateFunc func(event CreateEvent[O]) UpdateFunc func(event UpdateEvent[O]) DeleteFunc func(event DeleteEvent[O]) GenericFunc func(event GenericEvent[O]) }
func (HandlerFuncs[O]) Create ¶
func (e HandlerFuncs[O]) Create(event CreateEvent[O])
func (HandlerFuncs[O]) Delete ¶
func (e HandlerFuncs[O]) Delete(event DeleteEvent[O])
func (HandlerFuncs[O]) Generic ¶
func (e HandlerFuncs[O]) Generic(event GenericEvent[O])
func (HandlerFuncs[O]) Update ¶
func (e HandlerFuncs[O]) Update(event UpdateEvent[O])
type HandlerRegistration ¶
type HandlerRegistration interface {
Remove() error
}
type Source ¶
type Source[O orimeta.Object] interface { AddHandler(handler Handler[O]) (HandlerRegistration, error) }
type UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.