stream

package
v0.1.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 0 Imported by: 0

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 All

type All struct{}

All selects all existing Event Streams.

type ByID

type ByID ID

ByID selects a single Event Stream identified by the provided stream.ID.

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL