MCPcopy
hub / github.com/valyala/fasthttp / LookupIPAddr

Method LookupIPAddr

client_test.go:4245–4248  ·  view source on GitHub ↗
(ctx context.Context, host string)

Source from the content-addressed store, hash-verified

4243}
4244
4245func (r *testResolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error) {
4246 r.lookupCountByHost[host]++
4247 return r.resolver.LookupIPAddr(ctx, host)
4248}
4249
4250type TransportMock struct {
4251 wrapperFunc func(hc *HostClient, req *Request, resp *Response) (retry bool, err error)

Callers

nothing calls this directly

Calls 1

LookupIPAddrMethod · 0.65

Tested by

no test coverage detected