ical

package
v0.0.0-...-1946ff8 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package ical adapted from https://github.com/soh335/ical

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VCalendar

type VCalendar struct {
	VERSION string // 2.0
	PRODID  string // -//My Company//NONSGML Event Calendar//EN
	URL     string // http://my.calendar/url

	NAME         string // My Calendar Name
	X_WR_CALNAME string // My Calendar Name
	DESCRIPTION  string // A description of my calendar
	X_WR_CALDESC string // A description of my calendar

	TIMEZONE_ID   string // Europe/London
	X_WR_TIMEZONE string // Europe/London

	REFRESH_INTERVAL string // PT12H
	X_PUBLISHED_TTL  string // PT12H

	CALSCALE string // GREGORIAN
	METHOD   string // PUBLISH

	VComponent []VComponent
}

func NewBasicVCalendar

func NewBasicVCalendar() *VCalendar

func (*VCalendar) AddComponent

func (c *VCalendar) AddComponent(comp VComponent)

func (*VCalendar) Encode

func (c *VCalendar) Encode(w io.Writer) error

type VComponent

type VComponent interface {
	EncodeIcal(w io.Writer) error
}

type VEvent

type VEvent struct {
	VComponent
	UID         string
	DTSTAMP     time.Time
	DTSTART     time.Time
	DTEND       time.Time
	SUMMARY     string
	DESCRIPTION string
	TZID        string
	LOCATION    string

	AllDay bool
}

func (VEvent) EncodeIcal

func (e VEvent) EncodeIcal(w io.Writer) error

Jump to

Keyboard shortcuts

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