Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNil ¶
func IsNil[O comparable](o O) bool
Types ¶
type ComparableObject ¶
type ComparableObject interface {
comparable
Object
}
type EventHandler ¶
type EventHandler[T Object] struct { AddFunc func(obj T) AddExtendedFunc func(obj T, initialSync bool) UpdateFunc func(oldObj, newObj T) DeleteFunc func(obj T) }
func (EventHandler[T]) OnAdd ¶
func (e EventHandler[T]) OnAdd(obj interface{}, initialSync bool)
func (EventHandler[T]) OnDelete ¶
func (e EventHandler[T]) OnDelete(obj interface{})
func (EventHandler[T]) OnUpdate ¶
func (e EventHandler[T]) OnUpdate(oldObj, newObj interface{})
Click to show internal directories.
Click to hide internal directories.