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) RegisterMetrics ¶
func (ctx *ReaderContext) RegisterMetrics(dir *tricorder.DirectorySpec) error
func (*ReaderContext) String ¶
func (ctx *ReaderContext) String() string
Click to show internal directories.
Click to hide internal directories.