MCPcopy Index your code
hub / github.com/CodisLabs/codis / LookupIP

Function LookupIP

pkg/utils/resolver.go:17–20  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

15)
16
17func LookupIP(host string) []net.IP {
18 ipAddrs, _ := net.LookupIP(host)
19 return ipAddrs
20}
21
22func LookupIPTimeout(host string, timeout time.Duration) []net.IP {
23 cntx, cancel := context.WithTimeout(context.Background(), timeout)

Callers 2

TestLookupIPFunction · 0.85
LookupIPTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestLookupIPFunction · 0.68