khal

package
v0.0.0-...-71090b4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() common.Module

Types

type Event

type Event struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	StartDate   string `json:"start-date"`
	StartTime   string `json:"start-time"`
	EndDate     string `json:"end-date"`
	EndTime     string `json:"end-time"`
	Location    string `json:"location"`
}

func (*Event) GetEndDate

func (ev *Event) GetEndDate() (time.Time, error)

func (*Event) GetEndTime

func (ev *Event) GetEndTime() (time.Time, error)
func (ev *Event) GetMeetingLink() (string, error)

func (*Event) GetStartDate

func (ev *Event) GetStartDate() (time.Time, error)

func (*Event) GetStartTime

func (ev *Event) GetStartTime() (time.Time, error)

type EventSorter

type EventSorter []*Event

func (EventSorter) Len

func (evs EventSorter) Len() int

func (EventSorter) Less

func (evs EventSorter) Less(i, j int) bool

func (EventSorter) Swap

func (evs EventSorter) Swap(i, j int)

type Khal

type Khal struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*Khal) GetDescription

func (m *Khal) GetDescription() string

func (*Khal) GetLastRun

func (m *Khal) GetLastRun() string

func (*Khal) GetName

func (m *Khal) GetName() string

func (*Khal) GetRunInterval

func (m *Khal) GetRunInterval() int64

func (*Khal) GetRunIntervalOnBattery

func (m *Khal) GetRunIntervalOnBattery() int64

func (*Khal) GetSlug

func (m *Khal) GetSlug() string

func (*Khal) GetWaybarOutput

func (m *Khal) GetWaybarOutput() (*common.WaybarOutput, error)

func (*Khal) IsEnabled

func (m *Khal) IsEnabled() bool

func (*Khal) Run

func (m *Khal) Run() error

func (*Khal) RunCommand

func (m *Khal) RunCommand(name string, args []string) error

func (*Khal) SaveLastRun

func (m *Khal) SaveLastRun()

func (*Khal) SuspendOnBattery

func (m *Khal) SuspendOnBattery() bool

func (*Khal) WriteOutput

func (m *Khal) WriteOutput() error

Jump to

Keyboard shortcuts

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