MCPcopy Create free account
hub / github.com/mpolden/echoip / key

Function key

http/cache.go:36–40  ·  view source on GitHub ↗
(ip net.IP)

Source from the content-addressed store, hash-verified

34}
35
36func key(ip net.IP) uint64 {
37 h := fnv.New64a()
38 h.Write(ip)
39 return h.Sum64()
40}
41
42func (c *Cache) Set(ip net.IP, resp Response) {
43 if c.capacity == 0 {

Callers 2

SetMethod · 0.85
GetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected