mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
carddav: rename Discover to DiscoverContextURL
This only performs part of the discovery process.
This commit is contained in:
parent
d033e09835
commit
174622c1eb
@ -17,9 +17,9 @@ import (
|
|||||||
"github.com/emersion/go-webdav/internal"
|
"github.com/emersion/go-webdav/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Discover performs a DNS-based CardDAV service discovery as described in
|
// DiscoverContextURL performs a DNS-based CardDAV service discovery as
|
||||||
// RFC 6352 section 11. It returns the URL to the CardDAV server.
|
// described in RFC 6352 section 11. It returns the URL to the CardDAV server.
|
||||||
func Discover(ctx context.Context, domain string) (string, error) {
|
func DiscoverContextURL(ctx context.Context, domain string) (string, error) {
|
||||||
var resolver net.Resolver
|
var resolver net.Resolver
|
||||||
|
|
||||||
// Only lookup carddavs (not carddav), plaintext connections are insecure
|
// Only lookup carddavs (not carddav), plaintext connections are insecure
|
||||||
|
Loading…
Reference in New Issue
Block a user