cpulimiter

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 12

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL