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