Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Implements the Source interface, embed it in your own entities to enable functions such as `Store` and `Unwrap`.
I really like this solution because it does not poluate the domain stuff by exposing methods on entities. You have to explicitly ask for it.
type Source ¶
type Source interface {
// contains filtered or unexported methods
}
Represents an event source which contains events before dispatching. Methods are unexported to avoid polluting the domain entities with those considerations for external clients.
You may use `Store` and `Unwrap` to manipulate a struct which embed an `Emitter`.
Click to show internal directories.
Click to hide internal directories.