carddav: use custom type for context keys

This commit is contained in:
Conrad Hoffmann 2022-11-15 21:25:37 +01:00 committed by Simon Ser
parent 5bfd6f54b2
commit d4d56c2707

View File

@ -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) {