carddav: rename Discover to DiscoverContextURL

This only performs part of the discovery process.
This commit is contained in:
Simon Ser 2023-12-27 23:11:51 +01:00
parent d033e09835
commit 174622c1eb

View File

@ -17,9 +17,9 @@ import (
"github.com/emersion/go-webdav/internal"
)
// Discover performs a DNS-based CardDAV service discovery as described in
// RFC 6352 section 11. It returns the URL to the CardDAV server.
func Discover(ctx context.Context, domain string) (string, error) {
// DiscoverContextURL performs a DNS-based CardDAV service discovery as
// described in RFC 6352 section 11. It returns the URL to the CardDAV server.
func DiscoverContextURL(ctx context.Context, domain string) (string, error) {
var resolver net.Resolver
// Only lookup carddavs (not carddav), plaintext connections are insecure