modules

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPlugins

func InitPlugins(pm PluginManager)

InitPlugins initializes the plugin system with the given manager

Types

type BatteryModule

type BatteryModule struct{}

BatteryModule displays battery information

func (*BatteryModule) Name

func (m *BatteryModule) Name() string

func (*BatteryModule) Render

func (m *BatteryModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type CPUModule

type CPUModule struct{}

CPUModule displays CPU information

func (*CPUModule) Name

func (m *CPUModule) Name() string

func (*CPUModule) Render

func (m *CPUModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type DEModule

type DEModule struct{}

DEModule displays desktop environment

func (*DEModule) Name

func (m *DEModule) Name() string

func (*DEModule) Render

func (m *DEModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type DiskModule

type DiskModule struct{}

DiskModule displays disk usage

func (*DiskModule) Name

func (m *DiskModule) Name() string

func (*DiskModule) Render

func (m *DiskModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type GPUModule

type GPUModule struct{}

GPUModule displays GPU information

func (*GPUModule) Name

func (m *GPUModule) Name() string

func (*GPUModule) Render

func (m *GPUModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type HostnameModule

type HostnameModule struct{}

HostnameModule displays hostname

func (*HostnameModule) Name

func (m *HostnameModule) Name() string

func (*HostnameModule) Render

func (m *HostnameModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type KernelModule

type KernelModule struct{}

KernelModule displays kernel version

func (*KernelModule) Name

func (m *KernelModule) Name() string

func (*KernelModule) Render

func (m *KernelModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type LocalIPModule

type LocalIPModule struct{}

LocalIPModule displays local IP address

func (*LocalIPModule) Name

func (m *LocalIPModule) Name() string

func (*LocalIPModule) Render

func (m *LocalIPModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type MemoryModule

type MemoryModule struct{}

MemoryModule displays memory usage

func (*MemoryModule) Name

func (m *MemoryModule) Name() string

func (*MemoryModule) Render

func (m *MemoryModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type Module

type Module interface {
	Name() string
	Render(info *collectors.SystemInfo, styles theme.Styles) string
}

Module represents a displayable system information module

func Factory

func Factory(name string) Module

Factory creates modules by name

type NetworkModule

type NetworkModule struct{}

NetworkModule displays network interface information

func (*NetworkModule) Name

func (m *NetworkModule) Name() string

func (*NetworkModule) Render

func (m *NetworkModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type OSModule

type OSModule struct{}

OSModule displays operating system information

func (*OSModule) Name

func (m *OSModule) Name() string

func (*OSModule) Render

func (m *OSModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type PluginManager

type PluginManager interface {
	GetPlugin(name string) (Module, bool)
}

PluginManager interface for plugin lookup

type PublicIPModule

type PublicIPModule struct{}

func (*PublicIPModule) Name

func (m *PublicIPModule) Name() string

func (*PublicIPModule) Render

func (m *PublicIPModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type ShellModule

type ShellModule struct{}

ShellModule displays shell information

func (*ShellModule) Name

func (m *ShellModule) Name() string

func (*ShellModule) Render

func (m *ShellModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type TerminalModule

type TerminalModule struct{}

TerminalModule displays terminal information

func (*TerminalModule) Name

func (m *TerminalModule) Name() string

func (*TerminalModule) Render

func (m *TerminalModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type UptimeModule

type UptimeModule struct{}

UptimeModule displays system uptime

func (*UptimeModule) Name

func (m *UptimeModule) Name() string

func (*UptimeModule) Render

func (m *UptimeModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

type WMModule

type WMModule struct{}

WMModule displays window manager

func (*WMModule) Name

func (m *WMModule) Name() string

func (*WMModule) Render

func (m *WMModule) Render(info *collectors.SystemInfo, styles theme.Styles) string

Jump to

Keyboard shortcuts

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