entities

package
v0.0.0-...-539deee Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressData

type AddressData struct {
	XMLName xml.Name `xml:"urn:ietf:params:xml:ns:carddav address-data"`
	Prop    []*CProp `xml:",omitempty"`
	Content string   `xml:",chardata"`
}

func (*AddressData) Card

func (c *AddressData) Card() (*components.Card, error)

type CProp

type CProp struct {
	XMLName xml.Name `xml:"urn:ietf:params:xml:ns:carddav prop"`
	Name    string   `xml:"name,attr"`
}

type ContactQuery

type ContactQuery struct {
	XMLName xml.Name `xml:"urn:ietf:params:xml:ns:carddav addressbook-query"`
	Prop    *Prop    `xml:",omitempty"`
}

a CalDAV calendar query object

func NewContactQueryWithProps

func NewContactQueryWithProps(props ...string) *ContactQuery

creates a new CalDAV query for iCalendar events from a particular time range

func NewDefaultContactQuery

func NewDefaultContactQuery() *ContactQuery

type GetETag

type GetETag struct {
	XMLName xml.Name `xml:"DAV: getetag"`
}

type Multistatus

type Multistatus struct {
	XMLName   xml.Name    `xml:"DAV: multistatus"`
	Responses []*Response `xml:"response,omitempty"`
}

a request to find properties on an an entity or collection

type Prop

type Prop struct {
	XMLName xml.Name `xml:"DAV: prop"`

	GetETag     *GetETag     `xml:",omitempty"`
	AddressData *AddressData `xml:",omitempty"`
}

type PropStat

type PropStat struct {
	XMLName xml.Name `xml:"propstat"`
	Status  string   `xml:"status"`
	Prop    *Prop    `xml:",omitempty"`
}

metadata about a property

type Response

type Response struct {
	XMLName   xml.Name    `xml:"response"`
	Href      string      `xml:"href"`
	PropStats []*PropStat `xml:"propstat,omitempty"`
}

a multistatus response entity

Jump to

Keyboard shortcuts

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