usecases

package
v0.4.0-dev106 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 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, eventFilter *esApi.EventFilter, metrics *metrics.EventStoreMetrics) usecase.UseCase

func NewRetrieveOrEventsUseCase added in v0.3.6

func NewRetrieveOrEventsUseCase(stream esApi.EventStore_RetrieveServer, store es.EventStore, eventFilters *esApi.EventFilters, metrics *metrics.EventStoreMetrics) usecase.UseCase

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