Documentation
¶
Overview ¶
Package itip applies RFC 5546 scheduling to go-ical events.
Index ¶
- Constants
- Variables
- func Address(prop *ical.Prop) string
- func Apply(stored, msg *ical.Calendar) (*ical.Calendar, error)
- func Attendees(comp *ical.Component) []string
- func Cancel(cal *ical.Calendar, attendees []string, now time.Time) *ical.Calendar
- func Dropped(before, after *ical.Component) []string
- func Invited(cal *ical.Calendar, addresses []string) string
- func Method(cal *ical.Calendar) string
- func Parse(raw []byte) (*ical.Calendar, error)
- func Reply(request *ical.Calendar, attendee, partstat string, now time.Time) (*ical.Calendar, error)
- func Request(cal *ical.Calendar) *ical.Calendar
- func Revise(before, after *ical.Component)
- func Sequence(comp *ical.Component) int
- func Series(cal *ical.Calendar) *ical.Component
Constants ¶
const ( MethodRequest = "REQUEST" MethodCancel = "CANCEL" MethodReply = "REPLY" MethodPublish = "PUBLISH" )
The methods handled (RFC 5546 1.4).
const ProductID = "-//alborzmail//go-itip//EN"
ProductID is the PRODID of the calendar objects this package writes.
Variables ¶
var ( ErrUID = errors.New("itip: missing or inconsistent event UID") ErrOrganizer = errors.New("itip: not from the event's organizer") ErrOutdated = errors.New("itip: for another revision of the event") ErrSuperseded = errors.New("itip: a later answer from this attendee is already applied") ErrUninvited = errors.New("itip: the attendee is not invited") ErrInstance = errors.New("itip: the event holds no such occurrence") )
Functions ¶
func Apply ¶
Apply takes a message into the stored copy of its event, nil for none; the result is nil when nothing remains. Every event must have one nonempty UID, identical across the message and stored series. Invalid identities return ErrUID before applying any method.
func Cancel ¶
Cancel withdraws cal's event, one revision on: from the attendees named, or from all as CANCELLED when none are.
func Invited ¶
Invited is the first of addresses an event of cal invites, as the event writes it; empty for none.
func Reply ¶
func Reply(request *ical.Calendar, attendee, partstat string, now time.Time) (*ical.Calendar, error)
Reply answers every event of request as attendee, at its SEQUENCE and RECURRENCE-ID.
func Revise ¶
Revise writes after's SEQUENCE: before's, raised by a significant change or a dropped attendee, who is sent a CANCEL.
Types ¶
This section is empty.