flusher

package
v0.10.3-0...-00edec2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flusher

type Flusher interface {
	// RegisterPChannel ASYNCHRONOUSLY creates and starts pipelines belonging to the pchannel/WAL.
	// If a pipeline creation fails, the flusher will keep retrying to create it indefinitely.
	RegisterPChannel(pchannel string, w wal.WAL) error

	// UnregisterPChannel stops and removes pipelines belonging to the pchannel.
	UnregisterPChannel(pchannel string)

	// RegisterVChannel ASYNCHRONOUSLY create pipeline belonging to the vchannel.
	RegisterVChannel(vchannel string, wal wal.WAL)

	// UnregisterVChannel stops and removes pipeline belonging to the vchannel.
	UnregisterVChannel(vchannel string)

	// Start flusher service.
	Start()

	// Stop flusher, will synchronously flush all remaining data.
	Stop()
}

type MsgHandler

type MsgHandler interface {
	HandleCreateSegment(ctx context.Context, vchannel string, createSegmentMsg message.ImmutableCreateSegmentMessageV2) error

	HandleFlush(vchannel string, flushMsg message.ImmutableFlushMessageV2) error

	HandleManualFlush(vchannel string, flushMsg message.ImmutableManualFlushMessageV2) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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