mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchSender

type BatchSender[T batch.Message] struct {
	AddToBatchFn func(context.Context, *batch.WALMessage[T]) error
	SendFn       func(context.Context) error
	// contains filtered or unexported fields
}

func NewBatchSender

func NewBatchSender[T batch.Message]() *BatchSender[T]

func (*BatchSender[T]) AddToBatch

func (m *BatchSender[T]) AddToBatch(ctx context.Context, msg *batch.WALMessage[T]) error

func (*BatchSender[T]) Close

func (m *BatchSender[T]) Close()

func (*BatchSender[T]) GetWALMessages

func (m *BatchSender[T]) GetWALMessages() []*batch.WALMessage[T]

func (*BatchSender[T]) Send

func (m *BatchSender[T]) Send(ctx context.Context) error

Jump to

Keyboard shortcuts

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