readers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

util/readers exists to provide convenient and composable io.Reader compatible streams to allow testing without having to check in large binary files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectedReader

func InjectedReader(
	offsetFromStart int64,
	base io.Reader,
	inject io.Reader,
) io.Reader

Injects the second reader into the first at an offset

func NewNonRepeatingSequence

func NewNonRepeatingSequence(i int) io.Reader

func NewSizedNonRepeatingSequence

func NewSizedNonRepeatingSequence(i int, s int64) io.Reader

func OneReader

func OneReader(length int) io.Reader

func SequenceLimit

func SequenceLimit(size int64, readers ...io.Reader) io.Reader

read from 'readers' in sequence up to a limit of 'size'

func ZeroReader

func ZeroReader(length int) io.Reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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