Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEvents ¶
Gather, create and send events which have occurred within the scope of this context.
func HasEventHandler ¶
func WithEventHandler ¶
func WithEventHandler(ctx context.Context, handler EventHandler) context.Context
Types ¶
type Event ¶
type Event struct { // The name of the event, e.g. member.created. EventName string `json:"eventName"` // The time at which the event was created. OccurredAt time.Time `json:"occurredAt"` // The identity that resulted in the triggered events. IdentityId string `json:"identityId,omitempty"` // The target impacted by this event. Target *EventTarget `json:"target"` }
type EventHandler ¶
The event handler function to be executed for each subscriber event generated.
func GetEventHandler ¶
func GetEventHandler(ctx context.Context) (EventHandler, error)
Click to show internal directories.
Click to hide internal directories.