fsrateio

package
v0.0.0-...-d8f7d12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadMeasurer

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

func (*ReadMeasurer) MeasureReadIO

func (measurer *ReadMeasurer) MeasureReadIO(bytesSinceLastMeasurement uint64) (
	uint64, error)

func (*ReadMeasurer) Reset

func (measurer *ReadMeasurer) Reset()

type ReaderContext

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

func NewReaderContext

func NewReaderContext(maxBytesPerSecond uint64,
	maxBlocksPerSecond uint64, speedPercent uint64) *ReaderContext

func (*ReaderContext) GetContext

func (ctx *ReaderContext) GetContext() *rateio.ReaderContext

func (*ReaderContext) NewReader

func (ctx *ReaderContext) NewReader(rd io.Reader) *rateio.Reader

func (*ReaderContext) RegisterMetrics

func (ctx *ReaderContext) RegisterMetrics(dir *tricorder.DirectorySpec) error

func (*ReaderContext) String

func (ctx *ReaderContext) String() string

Jump to

Keyboard shortcuts

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