xaggregate

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(n int, opts ...MakeOption) (
	_ []aggregate.Aggregate,
	getAppliedEvents func(uuid.UUID) []event.Event,
)

Make returns n "foo" aggregates and a function to retrieve the applied events for those aggregates.

func Map

Map takes a slice of aggregates and returns a map that provides quick access to those aggregates by their UUID.

func Shuffle

func Shuffle(as []aggregate.Aggregate) []aggregate.Aggregate

Shuffle shuffles aggregates and returns the shuffled aggregates.

Types

type MakeOption

type MakeOption func(*makeConfig)

MakeOption is a Make option.

func Name

func Name(name string) MakeOption

Name returns a MakeOption that specifies the aggregateName.

Jump to

Keyboard shortcuts

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