MCPcopy Create free account
hub / github.com/AdRoll/baker / cityToInt

Function cityToInt

examples/sharding/shard.go:19–21  ·  view source on GitHub ↗
(r baker.Record)

Source from the content-addressed store, hash-verified

17}
18
19func cityToInt(r baker.Record) uint64 {
20 return simpleHash(r, City)
21}
22
23func simpleHash(r baker.Record, idx baker.FieldIndex) uint64 {
24 f := fnv.New64()

Callers

nothing calls this directly

Calls 1

simpleHashFunction · 0.70

Tested by

no test coverage detected