Documentation ¶
Index ¶
- type BeansdbRL
- type CArray
- type ResourceLimiter
- func (rl *ResourceLimiter) AddCount(count int)
- func (rl *ResourceLimiter) AddSize(size int)
- func (rl *ResourceLimiter) AddSizeAndCount(size int)
- func (rl *ResourceLimiter) IsZero() bool
- func (rl *ResourceLimiter) SubCount(count int)
- func (rl *ResourceLimiter) SubSize(size int)
- func (rl *ResourceLimiter) SubSizeAndCount(size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeansdbRL ¶
type BeansdbRL struct { AllocRL *ResourceLimiter GetData ResourceLimiter SetData ResourceLimiter FlushData ResourceLimiter }
var (
DBRL BeansdbRL
)
type ResourceLimiter ¶
type ResourceLimiter struct { Count int64 Size int64 MaxCount int64 MaxSize int64 Chan chan int `json:"-"` }
var (
AllocRL ResourceLimiter
)
func (*ResourceLimiter) AddCount ¶
func (rl *ResourceLimiter) AddCount(count int)
func (*ResourceLimiter) AddSize ¶
func (rl *ResourceLimiter) AddSize(size int)
func (*ResourceLimiter) AddSizeAndCount ¶
func (rl *ResourceLimiter) AddSizeAndCount(size int)
func (*ResourceLimiter) IsZero ¶
func (rl *ResourceLimiter) IsZero() bool
func (*ResourceLimiter) SubCount ¶
func (rl *ResourceLimiter) SubCount(count int)
func (*ResourceLimiter) SubSize ¶
func (rl *ResourceLimiter) SubSize(size int)
func (*ResourceLimiter) SubSizeAndCount ¶
func (rl *ResourceLimiter) SubSizeAndCount(size int)
Click to show internal directories.
Click to hide internal directories.