Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteCard(path string) error
- func (c *Client) Do(req *Request) (*Response, error)
- func (c *Client) GetCard(path string) (*components.ContactCard, error)
- func (c *Client) PutCards(path string, cards ...*components.Card) error
- func (c *Client) QueryCards(path string, query *cont.ContactQuery) (contacts []*components.ContactCard, oerr error)
- func (c *Client) Server() *Server
- func (c *Client) WebDAV() *webdav.Client
- type Request
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
a client for making WebDAV requests
func NewDefaultClient ¶
creates a new client for communicating with a WebDAV server uses the default HTTP client from net/http
func (*Client) DeleteCard ¶
func (*Client) GetCard ¶
func (c *Client) GetCard(path string) (*components.ContactCard, error)
attempts to fetch an event on the remote CardDAV server
func (*Client) PutCards ¶
func (c *Client) PutCards(path string, cards ...*components.Card) error
creates or updates one or more cards on the remote CardDAV server
func (*Client) QueryCards ¶
func (c *Client) QueryCards(path string, query *cont.ContactQuery) (contacts []*components.ContactCard, oerr error)
attempts to fetch an cards on the remote CalDAV server
type Response ¶
a WebDAV response object
func NewResponse ¶
creates a new WebDAV response object
Click to show internal directories.
Click to hide internal directories.