Skip to content

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