calendar

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSVP

func GenerateRSVP(originalData []byte, userEmail, response string) ([]byte, error)

GenerateRSVP creates a RFC 6047 (iMIP) compliant reply .ics. Google Calendar requires: - METHOD:REPLY at calendar level - Only the responding attendee in VEVENT (others removed) - Updated PARTSTAT on the attendee - Current DTSTAMP

Types

type Event

type Event struct {
	UID         string
	Summary     string // Event title
	Description string
	Location    string
	Start       time.Time
	End         time.Time
	Organizer   string // Organizer email
	Status      string // CONFIRMED, TENTATIVE, CANCELLED
	Method      string // REQUEST, REPLY, CANCEL
}

Event represents a parsed calendar event from an .ics attachment

func ParseICS

func ParseICS(data []byte) (*Event, error)

ParseICS extracts the first VEVENT from .ics data

Jump to

Keyboard shortcuts

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