Documentation
¶
Overview ¶
Package stream exports types for dealing with Event Streams, such as Event Stream ids and Event Streams targets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByType ¶
type ByType string
ByType selects all Event Streams with the specified Stream Type identifier.
type ByTypes ¶
type ByTypes []string
ByTypes selects all Event Streams with the Stream Type identifiers in the provided list.
type ID ¶
type ID struct {
// Type is the type, or category, of the Event Stream to which this
// Event belong. Usually, this is the name of the Aggregate type.
Type string
// Name is the name of the Event Stream to which this Event belong.
// Usually, this is the string representation of the Aggregate id.
Name string
}
ID represents the unique identifier for an Event Stream.
type Target ¶
type Target interface {
// contains filtered or unexported methods
}
Target represents one or more Event Streams using different discriminators.
This is a sealed interface and implementations are only provided by this package. If you want to add support for an additional target, add it in this file, implement this interface and make sure users of this interface are updated correctly (e.g. Event Stores).