agenda

package
v0.0.0-...-21c9ae3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agenda

type Agenda struct {
	// contains filtered or unexported fields
}

Agenda is a thread-safe minheap of calendar events.

func NewAgenda

func NewAgenda(cfg *config.Configuration) *Agenda

NewAgenda fetches the specified calendars into a sorted list

func (*Agenda) Len

func (el *Agenda) Len() int

func (*Agenda) Less

func (el *Agenda) Less(i, j int) bool

func (*Agenda) Pop

func (el *Agenda) Pop() any

func (*Agenda) PrettyPrint

func (h *Agenda) PrettyPrint(output io.Writer)

PrettyPrint prints the list of Events to output using custom formatting

func (*Agenda) Push

func (el *Agenda) Push(x any)

func (*Agenda) Swap

func (el *Agenda) Swap(i, j int)

type EventEntry

type EventEntry struct {
	gocal.Event
	Calendar *config.Calendar
}

EventEntry wraps gocal.Event and includes a CalendarName field

Jump to

Keyboard shortcuts

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