carddav: compatibility with go-webdav

This commit is contained in:
emersion 2017-09-04 12:06:36 +02:00
parent e3ec66ed0f
commit 9a26c9d63a
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package carddav
import ( import (
"net/http" "net/http"
"os"
"strings" "strings"
"github.com/emersion/hydroxide/protonmail" "github.com/emersion/hydroxide/protonmail"
@ -45,6 +46,10 @@ func (ao *addressObject) Card() (vcard.Card, error) {
return card, nil return card, nil
} }
func (ao *addressObject) Stat() (os.FileInfo, error) {
return nil, nil
}
type addressBook struct { type addressBook struct {
c *protonmail.Client c *protonmail.Client
cache map[string]carddav.AddressObject cache map[string]carddav.AddressObject