disk

package
v0.0.0-...-a534134 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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