jstat

package
v0.0.0-...-ba3c981 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBattery

func NewBattery(interval time.Duration, icons []string) *battery

func NewBluetooth

func NewBluetooth(scrollInterval time.Duration, limit int, icons []string) *bluetooth

func NewBrightness

func NewBrightness(icons []string) *brightness

func NewCPU

func NewCPU(interval time.Duration, icons []string) *cpu

func NewDate

func NewDate(interval time.Duration, format string, icons []string) *date

func NewDisk

func NewDisk(interval time.Duration, paths, icons []string) *disk

func NewEthernet

func NewEthernet(scrollInterval, interval time.Duration, limit int) *ethernet

func NewHyprland

func NewHyprland(scrollInterval time.Duration, limit int) *hyprland

func NewInternet

func NewInternet(scrollInterval, interval time.Duration, limit int, icons []string) *internet

func NewMPD

func NewMPD(scrollInterval time.Duration, format string, limit int) *music

func NewNetSpeed

func NewNetSpeed(interval time.Duration) *netSpeed

func NewPipeWire

func NewPipeWire(discardInterval time.Duration, icons []string) *pipeWire

func NewRam

func NewRam(interval time.Duration, icons []string) *ram

func NewServer

func NewServer(modules map[string]Module) (<-chan json.RawMessage, <-chan error)

func NewSwap

func NewSwap(interval time.Duration, icons []string) *swap

func NewUptime

func NewUptime(interval time.Duration) *uptime

func NewUserHost

func NewUserHost() *userHost

Types

type Module

type Module interface {
	Init() error
	Run() (json.RawMessage, error)
	Sleep() error
	Close() error
}

Jump to

Keyboard shortcuts

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