disk

package
v0.0.0-...-00fdae5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2016 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Identifier = "disk_usage"

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskIOGenerator

type DiskIOGenerator struct {
	WarnThreshold float64
	CritThreshold float64

	Name string

	Interval time.Duration

	Items []DiskIOItem
}

func (*DiskIOGenerator) Produce

func (g *DiskIOGenerator) Produce(kill <-chan struct{}) <-chan []i3.Output

Produce implements i3.Producer

type DiskIOItem

type DiskIOItem struct {
	Name   string `json:"name"`
	Device string `json:"device"`
}

type DiskUsageGenerator

type DiskUsageGenerator struct {
	CritThreshold int `json:"crit_threshold"`
	WarnThreshold int `json:"warn_threshold"`

	Items []DiskUsageItem `json:"items"`

	// Identifier for receiving click events
	Name string
}

func (DiskUsageGenerator) Generate

func (g DiskUsageGenerator) Generate() ([]i3.Output, error)

type DiskUsageItem

type DiskUsageItem struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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