query

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*builder)

func ID

func ID(ids ...uuid.UUID) Option

ID returns an Option that filters Snapshots by their aggregateID:

func Name

func Name(names ...string) Option

Name returns an Option that filters Snapshots by their aggregateName.

func SortBy

SortBy returns an Option that defines the sorting behaviour for a Query.

func SortByMulti

func SortByMulti(sorts ...aggregate.SortOptions) Option

SortByMulti returns an Option that defines the sorting behaviour for a Query.

func Time

func Time(constraints ...time.Option) Option

Time returns an Option that filters Snapshots by the time they were created.

func Version

func Version(constraints ...version.Option) Option

Version returns an Option that filters Snapshots by their aggregateVersion.

type Query

type Query struct {
	query.Query
	// contains filtered or unexported fields
}

Query is used by Snapshot Stores to filter Snapshots.

func New

func New(opts ...Option) Query

New returns a Query from opts.

func (Query) Times

func (q Query) Times() time.Constraints

Times returns the time.Constraints of the Query.

Jump to

Keyboard shortcuts

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