pipeline

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination interface {
	io.Closer

	// Flush executes all caching sql.
	Flush(ctx context.Context) error

	// Exec executes the given sql.
	Exec(ctx context.Context, sql string) error
}

func NewDestination

func NewDestination(ctx context.Context, addr string, addrConnMax, bufSegCap int) (Destination, error)

type Source

type Source interface {
	io.Closer

	Pipe(ctx context.Context, destination Destination) error
}

func NewSource

func NewSource(ctx context.Context, addr string, addrConnMax int) (Source, error)

Jump to

Keyboard shortcuts

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