usecases

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 15 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