outbox

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutboxBackgroundService

type OutboxBackgroundService interface {
	RunAsync()
	Close()
}

func NewOutboxBackgroundService

func NewOutboxBackgroundService(
	ctx context.Context,
	logger *zap.SugaredLogger,
	outboxConfig outbox.OutboxConfig,
	messageProducer messaging.MessageProducer,
	entgoClient entities.EntgoClient,
	jobScheduler *gocron.Scheduler) (OutboxBackgroundService, error)

type OutboxPublisher

type OutboxPublisher interface {
	PublishWithoutTransaction(
		ctx context.Context,
		topic string,
		key string,
		headers map[string]string,
		event interface{}) error
	Publish(
		ctx context.Context,
		transaction *entities.Tx,
		topic string,
		key string,
		headers map[string]string,
		event interface{}) error
}

func NewOutboxPublisher

func NewOutboxPublisher(
	logger *zap.SugaredLogger,
	entgoClient entities.EntgoClient) (OutboxPublisher, error)

Directories

Path Synopsis
Package mock_outbox is a generated GoMock package.
Package mock_outbox is a generated GoMock package.

Jump to

Keyboard shortcuts

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