MCPcopy Create free account
hub / github.com/Shopify/goose / LookupSRV

Method LookupSRV

resolver/timeout_resolver.go:49–54  ·  view source on GitHub ↗
(ctx context.Context, service, proto, name string)

Source from the content-addressed store, hash-verified

47}
48
49func (r *timeoutResolver) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) {
50 ctx, cancel := context.WithTimeout(ctx, r.timeout)
51 defer cancel()
52
53 return r.lookup.LookupSRV(ctx, service, proto, name)
54}
55
56func (r *timeoutResolver) LookupMX(ctx context.Context, name string) (records []*net.MX, err error) {
57 ctx, cancel := context.WithTimeout(ctx, r.timeout)

Callers

nothing calls this directly

Calls 1

LookupSRVMethod · 0.65

Tested by

no test coverage detected