pipes

package
v0.0.0-...-1f56359 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CouldNotCreateNewGZipReader = "couldn't create new reader"
)

constants...

View Source
const (
	CouldNotCreateNewZLibReader = "couldn't create new reader"
)

constants...

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressGZip

type CompressGZip struct {
	goul.Pipe
	ID string
}

CompressGZip is a sample processing pipe that compress the packet with gzip.

func (*CompressGZip) Convert

func (p *CompressGZip) Convert(in chan goul.Item, message goul.Message) (out chan goul.Item, err error)

Convert implements interface Pipe/Converter

func (*CompressGZip) Revert

func (p *CompressGZip) Revert(in chan goul.Item, message goul.Message) (out chan goul.Item, err error)

Revert implements interface Pipe/Reverter

type CompressZLib

type CompressZLib struct {
	goul.Pipe
	ID string
}

CompressZLib is a sample processing pipe that compress the packet with zlib.

func (*CompressZLib) Convert

func (p *CompressZLib) Convert(in chan goul.Item, message goul.Message) (out chan goul.Item, err error)

Convert implements interface Pipe/Converter

func (*CompressZLib) Revert

func (p *CompressZLib) Revert(in chan goul.Item, message goul.Message) (out chan goul.Item, err error)

Revert implements interface Pipe/Reverter

type DebugPipe

type DebugPipe struct {
	goul.Pipe
	ID string
}

DebugPipe ...

func (*DebugPipe) Convert

func (p *DebugPipe) Convert(in chan goul.Item, message goul.Message) (out chan goul.Item, err error)

Convert implements interface Pipe/Converter

func (*DebugPipe) Revert

func (p *DebugPipe) Revert(in chan goul.Item, message goul.Message) (out chan goul.Item, err error)

Revert implements interface Pipe/Reverter

type DummyPipe

type DummyPipe struct {
	goul.Pipe
	ID string
}

DummyPipe ...

func (*DummyPipe) Convert

func (p *DummyPipe) Convert(in chan goul.Item, message goul.Message) (chan goul.Item, error)

Convert implements interface Pipe/Converter

func (*DummyPipe) Revert

func (p *DummyPipe) Revert(in chan goul.Item, message goul.Message) (chan goul.Item, error)

Revert implements interface Pipe/Reverter

Jump to

Keyboard shortcuts

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