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

Method LookupPort

resolver/timeout_resolver.go:35–40  ·  view source on GitHub ↗
(ctx context.Context, network, service string)

Source from the content-addressed store, hash-verified

33}
34
35func (r *timeoutResolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
36 ctx, cancel := context.WithTimeout(ctx, r.timeout)
37 defer cancel()
38
39 return r.lookup.LookupPort(ctx, network, service)
40}
41
42func (r *timeoutResolver) LookupCNAME(ctx context.Context, host string) (cname string, err error) {
43 ctx, cancel := context.WithTimeout(ctx, r.timeout)

Callers

nothing calls this directly

Calls 1

LookupPortMethod · 0.65

Tested by

no test coverage detected