generic

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryExecutor

type QueryExecutor struct {
	// contains filtered or unexported fields
}

QueryExecutor is used to run a query against a inmemory event store

func NewQueryExecutor

func NewQueryExecutor(store goengine.EventStore, streamName goengine.StreamName, resolver goengine.MessagePayloadResolver, query goengine.Query, queryBatchSize uint) (*QueryExecutor, error)

NewQueryExecutor returns a new QueryExecutor instance

func (*QueryExecutor) Reset

func (e *QueryExecutor) Reset(ctx context.Context)

Reset sets the executor to it's initial state

func (*QueryExecutor) Run

func (e *QueryExecutor) Run(ctx context.Context) (interface{}, error)

Run executes the query and returns the final state

Jump to

Keyboard shortcuts

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