MCPcopy Index your code
hub / github.com/golang/groupcache / Map

Struct Map

consistenthash/consistenthash.go:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26type Hash func(data []byte) uint32
27
28type Map struct {
29 hash Hash
30 replicas int
31 keys []int // Sorted
32 hashMap map[int]string
33}
34
35func New(replicas int, fn Hash) *Map {
36 m := &Map{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected