Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayedEvent ¶
type DelayedEvent struct { *Event // contains filtered or unexported fields }
DelayedEvent is an Event which waits a certain time and then sends itself in the given queue
func NewDelayedEvent ¶
func NewDelayedEvent(event *Event, delay time.Duration, resultQueue chan Event) *DelayedEvent
NewDelayedEvent creates a new DelayedEvent
func (DelayedEvent) IsWaiting ¶
func (dEvent DelayedEvent) IsWaiting() bool
IsWaiting returns true if the DelayedEvent has not been sent to the event queue
type Event ¶
Event represents a JSON event
func NewEventFromBytes ¶
NewEventFromBytes creates an Event from a byte array
func NewEventFromInterface ¶
NewEventFromInterface creates an Event from a empty interface
func (Event) GetDataAsBytes ¶
GetDataAsBytes returns the internal data as bytes
func (Event) GetDataAsInterface ¶
GetDataAsInterface returns the internal data as object
Click to show internal directories.
Click to hide internal directories.