usecases

package
v0.3.6-dev8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_BACKOFF_PUBLISH = 1 * time.Minute
)

Variables

This section is empty.

Functions

func NewRetrieveEventsUseCase

func NewRetrieveEventsUseCase(stream esApi.EventStore_RetrieveServer, store es.EventStore, filter *esApi.EventFilter, metrics *metrics.EventStoreMetrics) usecase.UseCase

NewRetrieveEventsUseCase creates a new usecase which retrieves all events from the store which match the filter

func NewStoreEventsUseCase

func NewStoreEventsUseCase(stream esApi.EventStore_StoreServer, store es.EventStore, bus es.EventBusPublisher, metrics *metrics.EventStoreMetrics) usecase.UseCase

NewStoreEventsUseCase creates a new usecase which stores all events in the store and broadcasts these events via the message bus

func NewStoreQueryFromProto

func NewStoreQueryFromProto(protoFilter *esApi.EventFilter) (*es.StoreQuery, error)

NewStoreQueryFromProto converts proto esApi.EventFilter to storage.StoreQuery

Types

type RetrieveEventsUseCase

type RetrieveEventsUseCase struct {
	*usecase.UseCaseBase
	// contains filtered or unexported fields
}

func (*RetrieveEventsUseCase) Run

type StoreEventsUseCase

type StoreEventsUseCase struct {
	*usecase.UseCaseBase
	// contains filtered or unexported fields
}

func (*StoreEventsUseCase) Run

Jump to

Keyboard shortcuts

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