Discover Packages
github.com/RetroCodeRamen/ttypedesk
apps
calendar
package
Version:
v1.0.260758
Opens a new window with list of versions in this module.
Published: Jul 30, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
RemindAt is when a reminder should fire for an event.
StorePath is the local events JSON file.
App is a month-view calendar with local events.
New builds a Calendar bound to cfg — specifically cfg.Calendar.Accounts,
to know what (if anything) to sync. Account setup itself (connect flow,
enable/disable, lead time, timezone) lives in Settings → Calendar, not
here; Calendar only ever reads config, it never writes it.
DueReminder is an event whose reminder window is active now.
DueReminders returns events that should notify now and have not been
marked in `already` for today's reminder slot.
type Event struct {
ID string `json:"id"`
Title string `json:"title"`
Start time .Time `json:"start"`
End time .Time `json:"end"`
AllDay bool `json:"all_day"`
Notes string `json:"notes,omitempty"`
Source string `json:"source"`
}
Event is a local calendar event.
func LoadEvents() []Event
LoadEvents reads local calendar events (best-effort).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.