forwarder

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPollingInterval = 100 * time.Millisecond

Variables

View Source
var DefaultOptions = &Options{
	PollingInterval: DefaultPollingInterval,
	Serializer:      serialization.NewProtobufSerializer(),
	OutboxTableName: "event_outbox",
}

Functions

This section is empty.

Types

type DBForwarder

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

func New

func New(db db.DB, bus bus.Bus, options *Options) (*DBForwarder, error)

func (*DBForwarder) Start

func (fw *DBForwarder) Start(ctx context.Context) error

func (*DBForwarder) Stop

func (fw *DBForwarder) Stop() error

type Options

type Options struct {
	PollingInterval time.Duration
	Serializer      serialization.Serializer
	OutboxTableName string
	Logger          *zap.Logger
}

Jump to

Keyboard shortcuts

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