Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor implements the monitoring for bandwidth measurements.
func NewMonitor ¶
func NewMonitor(doneCh <-chan struct{}) *Monitor
NewMonitor returns a monitor with defaults.
func (*Monitor) DeleteBucket ¶
DeleteBucket deletes monitoring the 'bucket'
func (*Monitor) GetReport ¶
func (m *Monitor) GetReport(selectBucket SelectionFunction) *madmin.BucketBandwidthReport
GetReport gets the report for all bucket bandwidth details.
type MonitorReaderOptions ¶
type MonitorReaderOptions struct { Bucket string Object string HeaderSize int BandwidthBytesPerSec int64 ClusterBandwidth int64 }
MonitorReaderOptions provides configurable options for monitor reader implementation.
type MonitoredReader ¶
type MonitoredReader struct {
// contains filtered or unexported fields
}
MonitoredReader monitors the bandwidth
func NewMonitoredReader ¶
func NewMonitoredReader(ctx context.Context, monitor *Monitor, reader io.Reader, opts *MonitorReaderOptions) *MonitoredReader
NewMonitoredReader returns a io.Reader that reports bandwidth details.
type SelectionFunction ¶
SelectionFunction for buckets
func SelectBuckets ¶
func SelectBuckets(buckets ...string) SelectionFunction
SelectBuckets will select all the buckets passed in.
Click to show internal directories.
Click to hide internal directories.