-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Rename SortedSetGetScore -> SortedSetGetScores (#227)
Also fix the sorted set example.
- Loading branch information
Showing
6 changed files
with
61 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package responses | ||
|
||
type SortedSetScoreElement interface { | ||
isSortedSetScoreElement() | ||
} | ||
|
||
type SortedSetGetScoresResponse interface { | ||
isSortedSetGetScoresResponse() | ||
} | ||
|
||
// SortedSetGetScoresMiss Miss Response to a cache SortedSetScore api request. | ||
type SortedSetGetScoresMiss struct{} | ||
|
||
func (SortedSetGetScoresMiss) isSortedSetGetScoresResponse() {} | ||
|
||
// SortedSetGetScoresHit Hit Response to a cache SortedSetScore api request. | ||
type SortedSetGetScoresHit struct { | ||
Elements []SortedSetScoreElement | ||
} | ||
|
||
func (SortedSetGetScoresHit) isSortedSetGetScoresResponse() {} | ||
|
||
type SortedSetScore float64 | ||
|
||
func (SortedSetScore) isSortedSetScoreElement() {} | ||
|
||
type SortedSetScoreMiss struct{} | ||
|
||
func (SortedSetScoreMiss) isSortedSetScoreElement() {} | ||
|
||
type SortedSetScoreInvalid struct{} | ||
|
||
func (SortedSetScoreInvalid) isSortedSetScoreElement() {} |