-
Notifications
You must be signed in to change notification settings - Fork 5
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
chore: add leaderboards code snippets and example program #407
Conversation
de28ad0
to
56ce800
Compare
examples/doc-examples-go-apis.go
Outdated
panic(err) | ||
} else { | ||
switch r := getRankResponse.(type) { | ||
case *responses.LeaderboardFetchSuccess: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what other type
s are available here? Or is it just Success
?
Is this how we modeled other Fetch
APIs? or are they like, Hit + Miss?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's only FetchSuccess, no Hit/Miss.
We'd waffled on Success/Error vs Found/NotFound/Error and settled on Success/Error after the bug bash: momentohq/client-sdk-javascript#966
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Adds a leaderboard example file as well as dev docs code snippets for each leaderboard method