outbox_processor

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LIMIT    = 1000
	LOOKBACK = 72 * time.Hour
)
View Source
const (
	MAX_MESSAGES_PER_BATCH = 50
	EVENT_LOCK_TIMEOUT     = 3 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OutboxProcessor

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

func NewOutboxProcessor

func NewOutboxProcessor(
	natsConn *nats_internal.NATSConnections,
	repos *repository.Repositories,
) *OutboxProcessor

func (*OutboxProcessor) Cleanup added in v0.0.69

func (s *OutboxProcessor) Cleanup(ctx context.Context) error

func (*OutboxProcessor) ProcessBatch

func (p *OutboxProcessor) ProcessBatch(ctx context.Context) error

Jump to

Keyboard shortcuts

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