Documentation ¶
Index ¶
- Constants
- func NewRetrieveEventsUseCase(stream esApi.EventStore_RetrieveServer, store es.EventStore, ...) usecase.UseCase
- func NewStoreEventsUseCase(stream esApi.EventStore_StoreServer, store es.EventStore, ...) usecase.UseCase
- func NewStoreQueryFromProto(protoFilter *esApi.EventFilter) (*es.StoreQuery, error)
- type RetrieveEventsUseCase
- type StoreEventsUseCase
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 }
type StoreEventsUseCase ¶
type StoreEventsUseCase struct { *usecase.UseCaseBase // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.