data

package
v0.0.0-...-9dc6399 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileProvider

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

FileProvider reads data from a file.

func NewFileProvider

func NewFileProvider(path string) *FileProvider

NewFileProvider returns a new FileProvider.

func (*FileProvider) Reader

func (f *FileProvider) Reader() (io.Reader, error)

type Provider

type Provider interface {
	Reader() (io.Reader, error)
}

The Provider interface is used to abstract the source of binary data.

type RandomGenerator

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

RandomGenerator generates random data.

func NewRandomGenerator

func NewRandomGenerator(bytes int64) *RandomGenerator

NewRandomGenerator returns a new RandomGenerator.

func (*RandomGenerator) Reader

func (g *RandomGenerator) Reader() (io.Reader, error)

Jump to

Keyboard shortcuts

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