MCPcopy
hub / github.com/grafana/dskit / LookupIPAddr

Method LookupIPAddr

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

Source from the content-addressed store, hash-verified

37
38type ipLookupResolver interface {
39 LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)
40 LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error)
41 IsNotFound(err error) bool
42}

Callers 2

ResolveMethod · 0.65
TestResolver_LookupIPFunction · 0.65

Implementers 2

mockHostnameResolverdns/resolver_test.go
Resolverdns/miekgdns/resolver.go

Calls

no outgoing calls

Tested by 1

TestResolver_LookupIPFunction · 0.52