Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event interface { // Returns the event's scope. Scope() string // Returns the event's key. Key() string // Returns the time at which the event was created using Create. Time() time.Time // Returns the event's optional value string. String() string // Returns the event's optional value as vars.Value Value() vars.Value // Returns the event's optional payload. Payload() *vars.ReadOnlyMap // Creates a new event with the given optional value and payload. Create(value any, payload *vars.Map) Event }
type Listener ¶
type Listener[SESS context.Context] interface { OnEvent(scope, key string, cb ActionWithEvent[SESS]) OnAnyEvent(cb ActionWithEvent[SESS]) }
Click to show internal directories.
Click to hide internal directories.