Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to access the hashMap in consistenthash.go #123

Open
sasathy1 opened this issue Aug 21, 2019 · 0 comments
Open

Add support to access the hashMap in consistenthash.go #123

sasathy1 opened this issue Aug 21, 2019 · 0 comments

Comments

@sasathy1
Copy link

sasathy1 commented Aug 21, 2019

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

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

@sasathy1 sasathy1 changed the title Support to return the hashMap of the hashring in consistenthash.go? Add support to access the hashMap of the hashring in consistenthash.go Aug 21, 2019
@sasathy1 sasathy1 changed the title Add support to access the hashMap of the hashring in consistenthash.go Add support to access the hashMap in consistenthash.go Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant