Documentation ¶
Index ¶
Constants ¶
View Source
const Key = "event"
Key is the key name of the event in the Gin context.
Variables ¶
View Source
var ( EvtUserCreated = "user_created" EvtUserDeleted = "user_deleted" )
Functions ¶
Types ¶
type Event ¶
type Event interface {
Send(E)
}
Event wraps the functions that interactive with the Event Store.
func FromContext ¶
FromContext returns the event store associated with this context.
Click to show internal directories.
Click to hide internal directories.