Versions in this module Expand all Collapse all v0 v0.1.1 Apr 11, 2023 v0.1.0 Mar 27, 2023 Changes in this version + type CreateEvent struct + Object O + type DeleteEvent struct + Object O + type Generator interface + func NewGenerator(list func(ctx context.Context) ([]O, error), opts GeneratorOptions) Generator[O] + type GeneratorOptions struct + ChannelCapacity int + RelistPeriod time.Duration + RelistThreshold time.Duration + type GenericEvent struct + Object O + type Handler interface + Create func(event CreateEvent[O]) + Delete func(event DeleteEvent[O]) + Generic func(event GenericEvent[O]) + Update func(event UpdateEvent[O]) + type HandlerFuncs struct + CreateFunc func(event CreateEvent[O]) + DeleteFunc func(event DeleteEvent[O]) + GenericFunc func(event GenericEvent[O]) + UpdateFunc func(event UpdateEvent[O]) + func (e HandlerFuncs[O]) Create(event CreateEvent[O]) + func (e HandlerFuncs[O]) Delete(event DeleteEvent[O]) + func (e HandlerFuncs[O]) Generic(event GenericEvent[O]) + func (e HandlerFuncs[O]) Update(event UpdateEvent[O]) + type HandlerRegistration interface + Remove func() error + type Source interface + AddHandler func(handler Handler[O]) (HandlerRegistration, error) + type UpdateEvent struct + ObjectNew O + ObjectOld O