Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int64bucket ¶
type Int64bucket struct {
// contains filtered or unexported fields
}
func (*Int64bucket) GetFreeResource ¶
func (b *Int64bucket) GetFreeResource() int64
func (*Int64bucket) GetResDetected ¶ added in v1.1.0
func (b *Int64bucket) GetResDetected(cost int64, timer *time.Timer) error
func (*Int64bucket) GetResource ¶
func (b *Int64bucket) GetResource(cost int64) error
func (*Int64bucket) ReleaseResource ¶
func (b *Int64bucket) ReleaseResource(freeResource int64)
!use getResImpl to get resource must use ReleaseResource to release
Click to show internal directories.
Click to hide internal directories.