stream

package
v2.0.0-...-38803c9 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BUFSIZE = 32 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumReaderWriter

type ChecksumReaderWriter struct {
	// contains filtered or unexported fields
}

func NewChecksumReaderWriter

func NewChecksumReaderWriter(mac hash.Hash, logger *logger.Logger) *ChecksumReaderWriter

func (*ChecksumReaderWriter) StartReader

func (cr *ChecksumReaderWriter) StartReader(reader io.Reader) io.Reader

func (*ChecksumReaderWriter) StartWriter

func (cr *ChecksumReaderWriter) StartWriter(writer io.Writer) io.Writer

type EncryptReader

type EncryptReader struct {
	// contains filtered or unexported fields
}

func NewEncryptReader

func NewEncryptReader(block cipher.Block, stream cipher.Stream, mac hash.Hash, iv []byte, logger *logger.Logger) *EncryptReader

func (*EncryptReader) StartReader

func (er *EncryptReader) StartReader(reader io.Reader) io.Reader

type ProgressReaderWriter

type ProgressReaderWriter struct {
	// contains filtered or unexported fields
}

func NewProgressReaderWriter

func NewProgressReaderWriter(filesize int64, interval time.Duration, callback callbackFunc) *ProgressReaderWriter

func (*ProgressReaderWriter) StartReader

func (pr *ProgressReaderWriter) StartReader(reader io.Reader) io.Reader

func (*ProgressReaderWriter) StartWriter

func (pr *ProgressReaderWriter) StartWriter(writer io.Writer) io.Writer

type RWQueueEntry

type RWQueueEntry interface {
	ReadQueueEntry
	WriteQueueEntry
}

type ReadQueueEntry

type ReadQueueEntry interface {
	StartReader(reader io.Reader) io.Reader
}

type ReadStreamQueue

type ReadStreamQueue struct {
	// contains filtered or unexported fields
}

func NewReadStreamQueue

func NewReadStreamQueue(entries ...ReadQueueEntry) (*ReadStreamQueue, error)

func (*ReadStreamQueue) Append

func (rsq *ReadStreamQueue) Append(entry ...ReadQueueEntry)

func (*ReadStreamQueue) StartReader

func (rsq *ReadStreamQueue) StartReader(reader io.Reader) io.Reader

type WriteQueueEntry

type WriteQueueEntry interface {
	StartWriter(writer io.Writer) io.Writer
}

Jump to

Keyboard shortcuts

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