mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
carddav: use custom type for context keys
This commit is contained in:
parent
5bfd6f54b2
commit
d4d56c2707
@ -27,9 +27,9 @@ CLIENTPIDMAP:1;urn:uuid:53e374d9-337e-4727-8803-a1e9c14e0551
|
|||||||
END:VCARD`
|
END:VCARD`
|
||||||
alicePath = "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf"
|
alicePath = "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf"
|
||||||
|
|
||||||
currentUserPrincipalKey = "test:currentUserPrincipal"
|
currentUserPrincipalKey = contextKey("test:currentUserPrincipal")
|
||||||
homeSetPathKey = "test:homeSetPath"
|
homeSetPathKey = contextKey("test:homeSetPath")
|
||||||
addressBookPathKey = "test:addressBookPath"
|
addressBookPathKey = contextKey("test:addressBookPath")
|
||||||
)
|
)
|
||||||
|
|
||||||
func (*testBackend) CurrentUserPrincipal(ctx context.Context) (string, error) {
|
func (*testBackend) CurrentUserPrincipal(ctx context.Context) (string, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user