MCPcopy
hub / github.com/grafana/dskit / LookupSRV

Method LookupSRV

dns/miekgdns/resolver.go:104–106  ·  view source on GitHub ↗
(ctx context.Context, service, proto, name string)

Source from the content-addressed store, hash-verified

102}
103
104func (r *Resolver) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) {
105 return r.lookupSRV(ctx, r.getConfig(), service, proto, name)
106}
107
108func (r *Resolver) lookupSRV(ctx context.Context, conf *dns.ClientConfig, service, proto, name string) (cname string, addrs []*net.SRV, err error) {
109 var target string

Callers

nothing calls this directly

Calls 2

lookupSRVMethod · 0.95
getConfigMethod · 0.95

Tested by

no test coverage detected