Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpuLimiter ¶
type CpuLimiter struct {
// contains filtered or unexported fields
}
func New ¶
func New(cpuPercent uint) *CpuLimiter
func (*CpuLimiter) CpuPercent ¶
func (cl *CpuLimiter) CpuPercent() uint
func (*CpuLimiter) Limit ¶
func (cl *CpuLimiter) Limit() error
func (*CpuLimiter) SetCpuPercent ¶
func (cl *CpuLimiter) SetCpuPercent(cpuPercent uint)
Click to show internal directories.
Click to hide internal directories.