~whynothugo/vdirsyncer-rs#36: 
Dav support over a Unix Socket

Someone on IRC asked if we'd support connecting to a Xandikos unix socket directly.

I'm not 100% decided on whether this feature is desirable or not. I don't want it to add too much complexity.

This library seems to do the relevant work for this: https://crates.io/crates/hyperlocal

Status
REPORTED
Submitter
~whynothugo
Assigned to
No-one
Submitted
1 year, 1 month ago
Updated
12 days ago
Labels
No labels applied.

~whynothugo referenced this from #40 1 year, 11 days ago

~whynothugo 15 days ago

With regards to the configuration syntax, it would remain unchanged and the Url would simply be of the style:

unix:///path/to/socket

With regards to the configuration implementation, the vdirsyncer::config::CalDav::into_storage function currently returns CalDavStorage<HttpsConnector<HttpConnector>>. It would have to return Arc<dyn Storage<I>> instead.

libdav is already generic on the Connect type, so requires no additional support.

~whynothugo 12 days ago

Given that the URL's path is the path to the socket, the HTTP path to the caldav server needs to be provided separately. The easiest approach is to use a URL fragment, which has no other use in this context. E.g.:

unix:///path/to/socket#/path/to/caldav/server

~whynothugo referenced this from #50 3 days ago

Register here or Log in to comment, or comment via email.