ics

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ics contains ics calendar implementation.

Index

Constants

View Source
const (
	UndefinedPriority = 0
	MinPriority       = 1
	MaxPriority       = 9
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar interface {
	// AddComponent adds ICS component to Calendar.
	AddComponent(component serializable)
	// Read returns Calendar content.
	Read() (io.Reader, int64)
}

Calendar is used to implement ICS Calendar structure.

func NewCalendar

func NewCalendar() Calendar

NewCalendar creates new calendar.

type Event

type Event interface {
	SetUID(string)
	SetCreated(time.Time)
	SetLastModified(time.Time)
	SetDTStart(time.Time)
	SetDTEnd(time.Time)
	SetExdate(t time.Time)
	SetDTStamp(time.Time)
	SetRRule(string)
	SetDescription(string)
	SetSummary(string)
	SetTransp(string)
	SetContact(string)
	SetPriority(int64)
	// contains filtered or unexported methods
}

Event is used to implement ICS event component.

func NewEvent

func NewEvent() Event

NewEvent creates new event.

Jump to

Keyboard shortcuts

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