Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStruct ¶
type DataStruct interface{}
type EventState ¶
type EventState string
var EventStateAdded EventState = "added"
var EventStateDeleted EventState = "deleted"
var EventStateUpdated EventState = "updated"
type Events ¶
type Events[T any] struct { ID string State EventState Data T }
type Listener ¶
type Listener[T any] struct { CurrentValue map[string]Value[T] NewValue map[string]Value[T] EventCallback func([]Events[T]) CurrentEvent []Events[T] // contains filtered or unexported fields }
func NewListener ¶
func (*Listener[T]) AddNewValue ¶
func (*Listener[T]) SetCallback ¶
Click to show internal directories.
Click to hide internal directories.