publisher

package
v0.0.0-...-db0afbf Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JetSteamPublisher

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

func New

func New(eventPrefix string, nc *nats.Conn, maxInflight int) *JetSteamPublisher

func (*JetSteamPublisher) Run

func (jsp *JetSteamPublisher) Run(ourEvents postgres.OutboxEvents, ourDeliveredWALChan chan pglogrepl.LSN) error

func (*JetSteamPublisher) WalUpdater

func (jsp *JetSteamPublisher) WalUpdater(walDelivery chan pglogrepl.LSN) error

type SendJob

type SendJob struct {
	Ack   jetstream.PubAckFuture
	Wal   pglogrepl.LSN
	MsgID string
}

type SubjectMapper

type SubjectMapper struct {
	Prefix string
}

func (*SubjectMapper) Map

func (sm *SubjectMapper) Map(data map[string]interface{}) string

Jump to

Keyboard shortcuts

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