Discover Packages
github.com/modernice/goes
aggregate
snapshot
query
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Oct 1, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Test tests the Snapshot s against the Query q and returns true if q should
include s in its results. Test can be used by snapshot.Store implementations
to filter events based on the query.
type Option func(*builder)
ID returns an Option that filters Snapshots by their AggregateID:
Name returns an Option that filters Snapshots by their AggregateName.
SortBy returns an Option that defines the sorting behaviour for a Query.
SortByMulti returns an Option that defines the sorting behaviour for a Query.
Time returns an Option that filters Snapshots by the time they were created.
Version returns an Option that filters Snapshots by their AggregateVersion.
Query is used by Snapshot Stores to filter Snapshots.
New returns a Query from opts.
Times returns the time.Constraints of the Query.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.