itip

package module
v0.0.0-...-8ed1a5b Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-itip

Go Reference

iTIP scheduling for go-ical, and its mail binding iMIP in package imip.

License

MIT

Documentation

Overview

Package itip applies RFC 5546 scheduling to go-ical events.

Index

Constants

View Source
const (
	MethodRequest = "REQUEST"
	MethodCancel  = "CANCEL"
	MethodReply   = "REPLY"
	MethodPublish = "PUBLISH"
)

The methods handled (RFC 5546 1.4).

View Source
const ProductID = "-//alborzmail//go-itip//EN"

ProductID is the PRODID of the calendar objects this package writes.

Variables

View Source
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 Address

func Address(prop *ical.Prop) string

Address is the calendar address a property names, without its mailto: scheme.

func Apply

func Apply(stored, msg *ical.Calendar) (*ical.Calendar, error)

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 Attendees

func Attendees(comp *ical.Component) []string

Attendees are the addresses a component invites.

func Cancel

func Cancel(cal *ical.Calendar, attendees []string, now time.Time) *ical.Calendar

Cancel withdraws cal's event, one revision on: from the attendees named, or from all as CANCELLED when none are.

func Dropped

func Dropped(before, after *ical.Component) []string

Dropped are the attendees before invites and after does not.

func Invited

func Invited(cal *ical.Calendar, addresses []string) string

Invited is the first of addresses an event of cal invites, as the event writes it; empty for none.

func Method

func Method(cal *ical.Calendar) string

Method is cal's METHOD, upper-cased.

func Parse

func Parse(raw []byte) (*ical.Calendar, error)

Parse reads a scheduling message holding at least one event.

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 Request

func Request(cal *ical.Calendar) *ical.Calendar

Request is the REQUEST for every event of cal, overrides included.

func Revise

func Revise(before, after *ical.Component)

Revise writes after's SEQUENCE: before's, raised by a significant change or a dropped attendee, who is sent a CANCEL.

func Sequence

func Sequence(comp *ical.Component) int

Sequence is a component's revision; unwritten is zero (RFC 5545 3.8.7.4).

func Series

func Series(cal *ical.Calendar) *ical.Component

Series is the component without RECURRENCE-ID, or nil.

Types

This section is empty.

Directories

Path Synopsis
Package imip carries iTIP scheduling messages in mail (RFC 6047).
Package imip carries iTIP scheduling messages in mail (RFC 6047).

Jump to

Keyboard shortcuts

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