publisher

package
v0.0.0-...-553ec8c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilConfig = errors.New("cannot override nil config")

Functions

This section is empty.

Types

type Config

type Config struct {
	ProcessedTransactionTopic string
	ProcessMonitorTopic       string
}

Config represents the publisher configuration structure.

type PublishProcessedTransactionError

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

PublishSucceededTransactionError represents an error when attempting to publish a successful transaction.

func NewPublishProcessedTransactionError

func NewPublishProcessedTransactionError(msg string, err error) *PublishProcessedTransactionError

NewPublishProcessedTransactionError creates and returns a new instance of PublishSucceededTransactionError.

func (PublishProcessedTransactionError) Error

type TransactionPublisher

type TransactionPublisher interface {
	PublishProcessedTransaction(transaction *dto.ProcessedTransaction) error
}

TransactionPublisher is an interface for publishing processed transactions.

func NewTransactionPublisher

func NewTransactionPublisher(
	cfg *Config,
	log logger.Logger,
	pub message.Publisher,
) (TransactionPublisher, error)

NewTransactionPublisher creates a new TransactionPublisher instance.

type TransactionPublisherError

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

TransactionPublisherError represents an error that occurred during the creation transaction publishing.

func NewTransactionPublisherError

func NewTransactionPublisherError(msg string, err error) *TransactionPublisherError

NewTransactionPublisherError creates and returns a new instance of TransactionPublisherError.

func (TransactionPublisherError) Error

Directories

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

Jump to

Keyboard shortcuts

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