stream

package
v0.0.0-...-df03e99 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnReaderWriterCloser

type ConnReaderWriterCloser interface {
	io.Reader
	io.WriteCloser
	// Enroll new connection for streaming purposes
	Enroll(conn net.Conn)
	// Checks if the component is running
	IsOpen() bool
	// Checks if a new stream is started and the component is reading data from the related connection
	IsReading() bool
	// Wait for a new connection is read for the first time
	Wait()
}

Describe capabilities of a connection reader and buffered reader/writer/closer component

func NewConnReaderWriterCloser

func NewConnReaderWriterCloser() ConnReaderWriterCloser

Jump to

Keyboard shortcuts

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