carddav package

import "code.pfad.fr/gopim/webdav/carddav"

Index

func NewAddressBookResource

func WellKnown

WellKnown returns a handler for the /.well-known/carddav endpoint. The target function should return the path to a resource providing an AddressbookHomeSet (usually the principals url). If an empty string is returned, an unauthenticated response will be returned.

type AddressBook

type AddressBookDetails

type AddressBookWriter

func NewInMemoryAddressBook

type Query

func (Query) MatchCard

MatchCard is an helper function to check if a card matches the filters. Ideally the cards should be filtered when requesting them upstream.

type QueryParam

QueryParam filters specific VCard parameters (attached to properties)

type QueryProperty

QueryProperty filters specific VCard properties

type QueryText

QueryText check if a given texts matches a provided match

func (QueryText) Match

Match the given string with the expected value (case-insensitive) Collation is ignored

type QueryTextMatch

type VCard

func NewMemVCard

NewMemVCard is mainly for debugging, implemetations should re-implement the VCard interface.

type VCardRequest

VCardRequest indicates the requested fields, to optimize implementation (Name is always needed).

type VCardUpload

Source Files

addressbook.go addressobject.go interface.go memaddressbook.go query.go