producer

package
v0.0.0-...-33f6294 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

type Producer struct {
	BankAccountsTopic string
	// contains filtered or unexported fields
}

func NewProducer

func NewProducer(topics Topics, brokers ...string) *Producer

func (*Producer) NewAccountEvent

func (p *Producer) NewAccountEvent(ctx context.Context, account *repository.Account) error

func (*Producer) NewTransactionEvent

func (p *Producer) NewTransactionEvent(ctx context.Context, trx *repository.Transaction) error

type Topics

type Topics struct {
	BankAccountsTopic string
}

Jump to

Keyboard shortcuts

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