var lookupSRV … var resolveTCPAddr … // GetCluster gets the cluster information via DNS discovery. // Also sees each entry as a separate instance. func GetCluster(serviceScheme, service, name, dns string, apurls types.URLs) ([]string, error) { … } type SRVClients … // GetClient looks up the client endpoints for a service and domain. func GetClient(service, domain string, serviceName string) (*SRVClients, error) { … } // GetSRVService generates a SRV service including an optional suffix. func GetSRVService(service, serviceName string, scheme string) (SRVService string) { … }