Documentation ¶
Overview ¶
Package filteredpipe provides pipes with interceptor for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.