writers

package
v4.2.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBatchTimeoutSeconds = 20
	DefaultBatchSize           = 10000
	DefaultBatchSizeBytes      = 5 * 1024 * 1024 // 5 MiB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgType

type MsgType int
const (
	MsgTypeUnset MsgType = iota
	MsgTypeMigrateTable
	MsgTypeInsert
	MsgTypeDeleteStale
)

func MsgID

func MsgID(msg message.WriteMessage) MsgType

type Writer

type Writer interface {
	Write(ctx context.Context, res <-chan message.WriteMessage) error
}

Directories

Path Synopsis
Package streamingbatchwriter provides a writers.Writer implementation that writes to a client that implements the streamingbatchwriter.Client interface.
Package streamingbatchwriter provides a writers.Writer implementation that writes to a client that implements the streamingbatchwriter.Client interface.

Jump to

Keyboard shortcuts

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