gallon

package
v0.0.0-...-3b9cb7e Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gallon

type Gallon struct {
	// contains filtered or unexported fields
}

func NewGallon

func NewGallon(
	input InputPlugin,
	output OutputPlugin,
) Gallon

func (Gallon) Run

func (g Gallon) Run() error

type InputPlugin

type InputPlugin interface {
	Connect(
		ctx context.Context,
		writer WriteCloser,
	) error
}

type OutputPlugin

type OutputPlugin interface {
	Connect(
		ctx context.Context,
		reader Reader,
	) error
}

type Pipe

type Pipe struct {
	// contains filtered or unexported fields
}

func NewPipe

func NewPipe() Pipe

func (Pipe) Close

func (w Pipe) Close() error

func (Pipe) Read

func (r Pipe) Read(record *Record) error

func (Pipe) Write

func (w Pipe) Write(record Record) error

type Reader

type Reader interface {
	Read(record *Record) error
}

type Record

type Record []interface{}

type WriteCloser

type WriteCloser interface {
	Write(record Record) error
	Close() error
}

Jump to

Keyboard shortcuts

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