Documentation ¶
Index ¶
- func GetModule() common.Module
- type Power
- func (m *Power) GetDescription() string
- func (m *Power) GetLastRun() string
- func (m *Power) GetName() string
- func (m *Power) GetRunInterval() int64
- func (m *Power) GetRunIntervalOnBattery() int64
- func (m *Power) GetSlug() string
- func (m *Power) GetWaybarOutput() (*common.WaybarOutput, error)
- func (m *Power) IsEnabled() bool
- func (m *Power) Run() error
- func (m *Power) RunCommand(name string, args []string) error
- func (m *Power) SaveLastRun()
- func (m *Power) SuspendOnBattery() bool
- func (m *Power) WriteOutput() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Power ¶
type Power struct { Name string Description string Slug string // contains filtered or unexported fields }
func (*Power) GetDescription ¶
func (*Power) GetLastRun ¶
func (*Power) GetRunInterval ¶
func (*Power) GetRunIntervalOnBattery ¶
func (*Power) GetWaybarOutput ¶
func (m *Power) GetWaybarOutput() (*common.WaybarOutput, error)
func (*Power) SaveLastRun ¶
func (m *Power) SaveLastRun()
func (*Power) SuspendOnBattery ¶
func (*Power) WriteOutput ¶
Click to show internal directories.
Click to hide internal directories.