go-webdav/carddav/carddav.go

39 lines
593 B
Go
Raw Normal View History

2020-01-21 20:01:18 +00:00
// Package carddav provides a client and server CardDAV implementation.
//
// CardDAV is defined in RFC 6352.
2020-01-14 21:19:54 +00:00
package carddav
2020-01-14 22:13:23 +00:00
import (
"time"
2020-01-14 22:44:21 +00:00
"github.com/emersion/go-vcard"
2020-01-14 22:13:23 +00:00
)
type AddressBook struct {
Path string
Name string
Description string
MaxResourceSize int64
2020-01-14 22:13:23 +00:00
}
type AddressBookQuery struct {
Props []string
AllProp bool
Limit int // <= 0 means unlimited
2020-01-14 22:44:21 +00:00
}
type AddressBookMultiGet struct {
Paths []string
Props []string
AllProp bool
}
type AddressObject struct {
Path string
ModTime time.Time
ETag string
Card vcard.Card
2020-01-14 22:13:23 +00:00
}