jstat

package
v0.0.0-...-7f55135 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

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

Types

type Module

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

func NewBattery

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

NewBattery returns a Module that reports the battery information of the laptop.

func NewBluetooth

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

func NewBrightness

func NewBrightness(icons []string) Module

func NewCPU

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

func NewDate

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

func NewDisk

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

func NewEthernet

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

func NewHyprland

func NewHyprland(scrollInterval time.Duration, limit int) Module

func NewInternet

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

func NewMPD

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

func NewNetSpeed

func NewNetSpeed(interval time.Duration) Module

func NewPipeWire

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

func NewRam

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

func NewSwap

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

func NewUptime

func NewUptime(interval time.Duration) Module

func NewUserHost

func NewUserHost() Module

Jump to

Keyboard shortcuts

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