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

Adding Sentinel Commands #8

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Adding Sentinel Commands #8

wants to merge 7 commits into from

Conversation

therealbill
Copy link

This PR adds a new set of methods/commands used for talking to a Redis Sentinel server. It introduces no dependencies, has tests for the non-trivial methods, embedded doc comments, and an additional markdown file detailing usage of the new methods.

This new set of supported commands are useful in interrogating a Redis sentinel as well as implementing Sentinel support (either in client code or in the library itself).

Note, this implements the sentinel aspect of issue #7.

therealbill and others added 7 commits July 22, 2014 17:43
The basic mechanics are here and will need to be extended. This
will include the completion of the struct definitions and their
construction
Also improved some of the documentation of the struct
Moved the code which builds the MasterInfo struct to it's own method in
favor of DRY when adding the SentinelMasters command which will return a
list of Masters being managed.  I'm not sure if it should return a list
or if it should return a map[string]MasterInfo. Leaning toward the
latter.
Adding detailed docs for Sentinel commands, finished adding Sentinel
commands.
Added documentation on the structs the file exports as well as
correcting "This command" to "This method".
Added tests for sentinel. Mainly testing the building of Structs from
a map[string]string.

Moved build*Struct methods to be unexported *Redis methods to enable
testing.
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

Successfully merging this pull request may close these issues.

1 participant