golang / golang/groupcache

Add support to access the hashMap in consistenthash.go

Open
#123 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13.3k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

My use case: I am planning to store a bunch of containers as nodes in the hashring. Each container would look at the hashring and decide what operations to do based on its position in the hashring. In order to do this, I need to access the hashring itself.
And so, Is there any plan to return the **hashmap** in the struct of hashring in consistenthash.go?

![image](https://user-images.githubusercontent.com/47989381/63474399-dbb2a080-c42d-11e9-9015-52adbc689206.png)

The hashring package of npm gives access to the ring structure itself. I was hoping to find a similar implementation of hashring in go. Would it be possible for you to support this?

Thanks,
Sai

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.