query

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

Option is a type that defines a function signature for modifying a builder. It is used to apply filtering options to Snapshot Stores in the query package.

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