eventbuffer

package
v0.0.0-...-a7da96f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBufferProcessService

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

func (*EventBufferProcessService) Dispatch

func (eb *EventBufferProcessService) Dispatch(ctx context.Context) error

Dispatch dispatches all expired events from event_buffer table, and delete them after dispatching

func (*EventBufferProcessService) HandleEvent

func (eb *EventBufferProcessService) HandleEvent(ctx context.Context, eventBuffer postgresEntity.EventBuffer) error

func (*EventBufferProcessService) Start

func (eb *EventBufferProcessService) Start(ctx context.Context)

func (*EventBufferProcessService) Stop

func (eb *EventBufferProcessService) Stop()

Stop stops the EventBufferWatcher

type EventBufferStoreService

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

func (*EventBufferStoreService) Delete

func (eb *EventBufferStoreService) Delete(eventBuffer *postgresEntity.EventBuffer) error

func (*EventBufferStoreService) GetById

func (*EventBufferStoreService) Park

func (eb *EventBufferStoreService) Park(
	evt eventstore.Event,
	tenant string,
	uuid string,
	expiryTimestamp time.Time,
) error

Deprecated

func (*EventBufferStoreService) ParkBaseEvent

func (eb *EventBufferStoreService) ParkBaseEvent(
	ctx context.Context,
	evt interface{},
	tenant string,
	expiryTimestamp time.Time,
) error

func (*EventBufferStoreService) ParkBaseEventWithId

func (eb *EventBufferStoreService) ParkBaseEventWithId(
	ctx context.Context,
	evt interface{},
	tenant string,
	expiryTimestamp time.Time,
	id string,
) error

func (*EventBufferStoreService) Update

func (eb *EventBufferStoreService) Update(eventBuffer *postgresEntity.EventBuffer) error

Jump to

Keyboard shortcuts

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