Versions in this module Expand all Collapse all v0 v0.3.0 Mar 9, 2022 v0.2.0 Jan 5, 2022 v0.1.0 Oct 13, 2021 Changes in this version + const EmptyResourceApproximateSize + const SmallResourceThreshold + const Unlimited + var ResourceInfluence = map[Type]int64 + var SmallResourceInfluence = map[Type]int64 + var TypeNameValue = map[string]Type + type ContainerLimit struct + func NewContainerLimit(ratePerSec float64, resourceInfluence int64) *ContainerLimit + func (l *ContainerLimit) Available() int64 + func (l *ContainerLimit) Rate() float64 + func (l *ContainerLimit) Take(count int64) time.Duration + type Scene struct + High int + Idle int + Low int + Normal int + func DefaultScene(limitType Type) *Scene + type Type int + const AddPeer + const RemovePeer + func (t Type) String() string