package
0.3.0-prerelease.4
Repository: https://github.com/get-eventually/go-eventually.git
Documentation: pkg.go.dev

# Functions

FromGenericEnvelope attempts to type-cast a GenericEnvelope instance into a strongly-typed Command Envelope.
Scenario is a scenario type to test the result of Commands being handled by a Command Handler.
ToEnvelope is a convenience function that wraps the provided Command type into an Envelope, with no metadata attached to it.

# Structs

ScenarioGiven is the state of the scenario once a set of Domain Events have been provided using Given(), to represent the state of the system at the time of evaluating a Command.
ScenarioInit is the entrypoint of the Command Handler scenario API.
ScenarioThen is the state of the scenario once the preconditions and expectations have been fully specified.
ScenarioWhen is the state of the scenario once the state of the system and the Command to evaluate have been provided.

# Interfaces

Handler is the interface that defines a Command Handler, a component that receives a specific kind of Command and executes the business logic related to that particular Command.

# Type aliases

Command is a specific kind of Message that represents an intent.
HandlerFunc is a functional type that implements the Handler interface.