carddav: add Stat to AddressObject interface

This commit is contained in:
emersion
2017-09-04 12:06:06 +02:00
parent 163fa1656d
commit 7d69432517
2 changed files with 17 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ package carddav
import (
"errors"
"os"
"github.com/emersion/go-vcard"
)
@@ -15,6 +16,7 @@ var (
type AddressObject interface {
ID() string
Card() (vcard.Card, error)
Stat() (os.FileInfo, error) // can return nil, nil
}
type AddressBook interface {