mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-23 00:34:23 +00:00
31 lines
430 B
Go
31 lines
430 B
Go
package carddav
|
|
|
|
import (
|
|
"encoding/xml"
|
|
|
|
"github.com/emersion/go-vcard"
|
|
)
|
|
|
|
const namespace = "urn:ietf:params:xml:ns:carddav"
|
|
|
|
type AddressBook struct {
|
|
Href string
|
|
Description string
|
|
}
|
|
|
|
var addressBookName = xml.Name{namespace, "addressbook"}
|
|
|
|
type AddressBookQuery struct {
|
|
Props []string
|
|
}
|
|
|
|
type AddressBookMultiGet struct {
|
|
Hrefs []string
|
|
Props []string
|
|
}
|
|
|
|
type Address struct {
|
|
Href string
|
|
Card vcard.Card
|
|
}
|