multiplex

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reader

func Reader(r io.Reader, done <-chan bool) (ResetableReader, ResetableReader)

Reader keeps reading r and writing to 2 other readers, which are returned. It stops only when the done channel is notified.

Types

type ResetableReader

type ResetableReader interface {
	io.Reader
	Reset()
}

ResetableReader is an io.Reader that can be "reset", i.e.: cleared of everything that was not yet read.

Jump to

Keyboard shortcuts

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