godock: github.com/sqp/godock/services/Cpu Index | Files

package Cpu

import "github.com/sqp/godock/services/Cpu"

Package Cpu is a CPU monitoring applet for Cairo-Dock.


Package Files

Cpu.go config.go

func NewApplet Uses

func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance

NewApplet creates a new applet instance.

type Applet Uses

type Applet struct {
    cdtype.AppBase // Applet base and dock connection.
    // contains filtered or unexported fields

Applet defines a dock applet.

func (*Applet) Init Uses

func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)

Init load user configuration if needed and initialise applet.

type CPU Uses

type CPU struct {
    // contains filtered or unexported fields

CPU monitors CPU activity and rendering on icon.

func NewCPU Uses

func NewCPU() *CPU

NewCPU creates a new CPU monitoring service.

func (*CPU) Check Uses

func (cpu *CPU) Check()

Check displays current CPU activity (average since last interval).

Package Cpu imports 3 packages (graph) and is imported by 1 packages. Updated 2016-09-13. Refresh now. Tools for package owners.