MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / getNetwork

Function getNetwork

proxy_test.go:1058–1064  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1056}
1057
1058func getNetwork(s string) *net.IPNet {
1059 if !strings.Contains(s, `/`) {
1060 s += "/32"
1061 }
1062 _, ipnet, _ := net.ParseCIDR(s)
1063 return ipnet
1064}
1065
1066const killQueryPattern = "KILL QUERY WHERE query_id"
1067

Callers 1

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected