go-webdav/elements.go
Alex Dunmow f9b91e9a35 fork: module path git.dev.alexdunmow.com/blissful/go-webdav
Fork of emersion/go-webdav v0.8.0 for BlissCRM's calendar server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:47:46 +08:00

32 lines
873 B
Go

package webdav
import (
"encoding/xml"
"git.dev.alexdunmow.com/blissful/go-webdav/internal"
)
var (
principalAlternateURISetName = xml.Name{"DAV:", "alternate-URI-set"}
principalURLName = xml.Name{"DAV:", "principal-URL"}
groupMembershipName = xml.Name{"DAV:", "group-membership"}
)
// https://datatracker.ietf.org/doc/html/rfc3744#section-4.1
type principalAlternateURISet struct {
XMLName xml.Name `xml:"DAV: alternate-URI-set"`
Hrefs []internal.Href `xml:"href"`
}
// https://datatracker.ietf.org/doc/html/rfc3744#section-4.2
type principalURL struct {
XMLName xml.Name `xml:"DAV: principal-URL"`
Href internal.Href `xml:"href"`
}
// https://datatracker.ietf.org/doc/html/rfc3744#section-4.4
type groupMembership struct {
XMLName xml.Name `xml:"DAV: group-membership"`
Hrefs []internal.Href `xml:"href"`
}