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

Method LookupIPAddr

resolver/timeout_resolver.go:28–33  ·  view source on GitHub ↗
(ctx context.Context, host string)

Source from the content-addressed store, hash-verified

26}
27
28func (r *timeoutResolver) LookupIPAddr(ctx context.Context, host string) (addrs []net.IPAddr, err error) {
29 ctx, cancel := context.WithTimeout(ctx, r.timeout)
30 defer cancel()
31
32 return r.lookup.LookupIPAddr(ctx, host)
33}
34
35func (r *timeoutResolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
36 ctx, cancel := context.WithTimeout(ctx, r.timeout)

Callers

nothing calls this directly

Calls 1

LookupIPAddrMethod · 0.65

Tested by

no test coverage detected