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

Method LookupHost

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

Source from the content-addressed store, hash-verified

19}
20
21func (r *timeoutResolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) {
22 ctx, cancel := context.WithTimeout(ctx, r.timeout)
23 defer cancel()
24
25 return r.lookup.LookupHost(ctx, host)
26}
27
28func (r *timeoutResolver) LookupIPAddr(ctx context.Context, host string) (addrs []net.IPAddr, err error) {
29 ctx, cancel := context.WithTimeout(ctx, r.timeout)

Callers

nothing calls this directly

Calls 1

LookupHostMethod · 0.65

Tested by

no test coverage detected