Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryThrottler ¶
type MemoryThrottler struct { BufferSize uint64 // 0 means turned-off // contains filtered or unexported fields }
func NewMemoryThrottler ¶
func NewMemoryThrottler(bufferSize uint64) *MemoryThrottler
func (*MemoryThrottler) AddInflight ¶
func (t *MemoryThrottler) AddInflight(size uint64)
func (*MemoryThrottler) ExceededLimits ¶
func (t *MemoryThrottler) ExceededLimits() bool
func (*MemoryThrottler) ReduceInflight ¶
func (t *MemoryThrottler) ReduceInflight(size uint64)
Click to show internal directories.
Click to hide internal directories.