writers

package
v4.7.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTicker

func NewTicker(interval time.Duration) (<-chan time.Time, func())

Types

type MsgType

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

func MsgID

func MsgID(msg message.WriteMessage) MsgType

type TickerFunc

type TickerFunc func(interval time.Duration) (ch <-chan time.Time, done func())

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