ioutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBytesReadCloser

func NewBytesReadCloser(b []byte) io.ReadCloser

func ReadAll

func ReadAll(r io.Reader, t Timer) ([]byte, error)

Types

type BytesReadCloser

type BytesReadCloser struct {
	*bytes.Reader
}

A Closeable Reader for bytes to mimic stream from inmemory byte storage

func (*BytesReadCloser) Close

func (*BytesReadCloser) Close() error

type Timer

type Timer interface {
	// Stops the timer and reports observation.
	Stop() float64
}

Defines a common interface for timers.

Jump to

Keyboard shortcuts

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