filteredpipe

package
v0.19.3 Latest Latest
Warning

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

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

Documentation

Overview

Package filteredpipe provides pipes with interceptor for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(conn0, conn1 io.ReadWriteCloser)

Connect two io.ReadWriteCloser.

func DetectAndClosePipe

func DetectAndClosePipe(h0, h1 func([]byte) bool) (io.ReadWriteCloser, io.ReadWriteCloser)

DetectAndClosePipe creates pair of filtered pipe. Handler is called on each Write and determine to close the connection.

func DetectAndDropPipe added in v0.11.2

func DetectAndDropPipe(h0, h1 func([]byte) bool) (io.ReadWriteCloser, io.ReadWriteCloser)

DetectAndDropPipe creates pair of filtered pipe. Handler is called on each Write and determine to drop the remaining data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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