Documentation
¶
Index ¶
- func InitPlugins(pm PluginManager)
- type BatteryModule
- type CPUModule
- type DEModule
- type DiskModule
- type GPUModule
- type HostnameModule
- type KernelModule
- type LocalIPModule
- type MemoryModule
- type Module
- type NetworkModule
- type OSModule
- type PluginManager
- type PublicIPModule
- type ShellModule
- type TerminalModule
- type UptimeModule
- type WMModule
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) Render ¶
func (m *CPUModule) Render(info *collectors.SystemInfo, styles theme.Styles) string
type DEModule ¶
type DEModule struct{}
DEModule displays desktop environment
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) 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
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) Render ¶
func (m *OSModule) Render(info *collectors.SystemInfo, styles theme.Styles) string
type PluginManager ¶
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