resource

package
v0.0.0-...-efff542 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPULevels

type CPULevels []int

CPULevels is the type returned by the Usage() method of a CPU load monitor.

type Load

type Load interface {
	StartStopper
	Update(int64)
}

Load is implemented by resource load controllers.

type MemStats

type MemStats struct {
	Total     int `json:"total"`
	Available int `json:"available"`
	Used      int `json:"used"`
	UsedPct   int `json:"usedpct"`
}

MemStats is the type returned by the Usage() method of a memory load monitor.

type Monitor

type Monitor interface {
	StartStopper
	Usage() interface{}
}

Monitor is implemented by resource consumption monitors.

type StartStopper

type StartStopper interface {
	Start()
	Stop()
}

StartStopper is implemented by types which can be started and stopped.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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