diff --git a/proto/podium/api/v1/podium.pb.go b/proto/podium/api/v1/podium.pb.go index e5e1bc5..520556b 100644 --- a/proto/podium/api/v1/podium.pb.go +++ b/proto/podium/api/v1/podium.pb.go @@ -143,6 +143,7 @@ func (m *RemoveLeaderboardRequest) GetLeaderboardId() string { return "" } +// ScoreUpsert allow to provide score information about a single member. type ScoreUpsert struct { PublicID string `protobuf:"bytes,1,opt,name=publicID,proto3" json:"publicID,omitempty"` Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"` @@ -190,6 +191,7 @@ func (m *ScoreUpsert) GetScore() int64 { return 0 } +// ScoreUpserts represent multiple score submissions. type ScoreUpserts struct { Members []*ScoreUpsert `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -292,9 +294,12 @@ func (m *BulkUpsertScoresRequest) GetScoreUpserts() *ScoreUpserts { return nil } +// MemberResponse represents the full leaderboard information about a member. type MemberResponse struct { - PublicID string `protobuf:"bytes,1,opt,name=publicID,proto3" json:"publicID,omitempty"` - Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` + PublicID string `protobuf:"bytes,1,opt,name=publicID,proto3" json:"publicID,omitempty"` + //implemented as double because int64 is exported as string through grpc-gateway + Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` + //the full int64 score received from Redis IntScore int64 `protobuf:"varint,3,opt,name=int_score,json=intScore,proto3" json:"int_score,omitempty"` Rank int32 `protobuf:"varint,4,opt,name=rank,proto3" json:"rank,omitempty"` PreviousRank int32 `protobuf:"varint,5,opt,name=previous_rank,json=previousRank,proto3" json:"previous_rank,omitempty"` @@ -379,53 +384,7 @@ func (m *MemberResponse) GetPosition() int32 { return 0 } -type MemberListResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Members []*MemberResponse `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MemberListResponse) Reset() { *m = MemberListResponse{} } -func (m *MemberListResponse) String() string { return proto.CompactTextString(m) } -func (*MemberListResponse) ProtoMessage() {} -func (*MemberListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{7} -} - -func (m *MemberListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MemberListResponse.Unmarshal(m, b) -} -func (m *MemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MemberListResponse.Marshal(b, m, deterministic) -} -func (m *MemberListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MemberListResponse.Merge(m, src) -} -func (m *MemberListResponse) XXX_Size() int { - return xxx_messageInfo_MemberListResponse.Size(m) -} -func (m *MemberListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MemberListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MemberListResponse proto.InternalMessageInfo - -func (m *MemberListResponse) GetSuccess() bool { - if m != nil { - return m.Success - } - return false -} - -func (m *MemberListResponse) GetMembers() []*MemberResponse { - if m != nil { - return m.Members - } - return nil -} - +// ScoreChange is the score payload when upserting a score. type ScoreChange struct { Score int64 `protobuf:"varint,1,opt,name=score,proto3" json:"score,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -437,7 +396,7 @@ func (m *ScoreChange) Reset() { *m = ScoreChange{} } func (m *ScoreChange) String() string { return proto.CompactTextString(m) } func (*ScoreChange) ProtoMessage() {} func (*ScoreChange) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{8} + return fileDescriptor_d33144d47ebf9898, []int{7} } func (m *ScoreChange) XXX_Unmarshal(b []byte) error { @@ -480,7 +439,7 @@ func (m *UpsertScoreRequest) Reset() { *m = UpsertScoreRequest{} } func (m *UpsertScoreRequest) String() string { return proto.CompactTextString(m) } func (*UpsertScoreRequest) ProtoMessage() {} func (*UpsertScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{9} + return fileDescriptor_d33144d47ebf9898, []int{8} } func (m *UpsertScoreRequest) XXX_Unmarshal(b []byte) error { @@ -536,140 +495,6 @@ func (m *UpsertScoreRequest) GetScoreChange() *ScoreChange { return nil } -type DefaultMemberResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - PublicID string `protobuf:"bytes,2,opt,name=publicID,proto3" json:"publicID,omitempty"` - Score float64 `protobuf:"fixed64,3,opt,name=score,proto3" json:"score,omitempty"` - IntScore int64 `protobuf:"varint,4,opt,name=int_score,json=intScore,proto3" json:"int_score,omitempty"` - Rank int32 `protobuf:"varint,5,opt,name=rank,proto3" json:"rank,omitempty"` - PreviousRank int32 `protobuf:"varint,6,opt,name=previous_rank,json=previousRank,proto3" json:"previous_rank,omitempty"` - ExpireAt int32 `protobuf:"varint,7,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DefaultMemberResponse) Reset() { *m = DefaultMemberResponse{} } -func (m *DefaultMemberResponse) String() string { return proto.CompactTextString(m) } -func (*DefaultMemberResponse) ProtoMessage() {} -func (*DefaultMemberResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{10} -} - -func (m *DefaultMemberResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DefaultMemberResponse.Unmarshal(m, b) -} -func (m *DefaultMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DefaultMemberResponse.Marshal(b, m, deterministic) -} -func (m *DefaultMemberResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DefaultMemberResponse.Merge(m, src) -} -func (m *DefaultMemberResponse) XXX_Size() int { - return xxx_messageInfo_DefaultMemberResponse.Size(m) -} -func (m *DefaultMemberResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DefaultMemberResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DefaultMemberResponse proto.InternalMessageInfo - -func (m *DefaultMemberResponse) GetSuccess() bool { - if m != nil { - return m.Success - } - return false -} - -func (m *DefaultMemberResponse) GetPublicID() string { - if m != nil { - return m.PublicID - } - return "" -} - -func (m *DefaultMemberResponse) GetScore() float64 { - if m != nil { - return m.Score - } - return 0 -} - -func (m *DefaultMemberResponse) GetIntScore() int64 { - if m != nil { - return m.IntScore - } - return 0 -} - -func (m *DefaultMemberResponse) GetRank() int32 { - if m != nil { - return m.Rank - } - return 0 -} - -func (m *DefaultMemberResponse) GetPreviousRank() int32 { - if m != nil { - return m.PreviousRank - } - return 0 -} - -func (m *DefaultMemberResponse) GetExpireAt() int32 { - if m != nil { - return m.ExpireAt - } - return 0 -} - -type BasicResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BasicResponse) Reset() { *m = BasicResponse{} } -func (m *BasicResponse) String() string { return proto.CompactTextString(m) } -func (*BasicResponse) ProtoMessage() {} -func (*BasicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{11} -} - -func (m *BasicResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BasicResponse.Unmarshal(m, b) -} -func (m *BasicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BasicResponse.Marshal(b, m, deterministic) -} -func (m *BasicResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BasicResponse.Merge(m, src) -} -func (m *BasicResponse) XXX_Size() int { - return xxx_messageInfo_BasicResponse.Size(m) -} -func (m *BasicResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BasicResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BasicResponse proto.InternalMessageInfo - -func (m *BasicResponse) GetSuccess() bool { - if m != nil { - return m.Success - } - return false -} - -func (m *BasicResponse) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - type TotalMembersRequest struct { LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId,proto3" json:"leaderboard_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -681,7 +506,7 @@ func (m *TotalMembersRequest) Reset() { *m = TotalMembersRequest{} } func (m *TotalMembersRequest) String() string { return proto.CompactTextString(m) } func (*TotalMembersRequest) ProtoMessage() {} func (*TotalMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{12} + return fileDescriptor_d33144d47ebf9898, []int{9} } func (m *TotalMembersRequest) XXX_Unmarshal(b []byte) error { @@ -721,7 +546,7 @@ func (m *TotalMembersResponse) Reset() { *m = TotalMembersResponse{} } func (m *TotalMembersResponse) String() string { return proto.CompactTextString(m) } func (*TotalMembersResponse) ProtoMessage() {} func (*TotalMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{13} + return fileDescriptor_d33144d47ebf9898, []int{10} } func (m *TotalMembersResponse) XXX_Unmarshal(b []byte) error { @@ -770,7 +595,7 @@ func (m *IncrementScoreRequest) Reset() { *m = IncrementScoreRequest{} } func (m *IncrementScoreRequest) String() string { return proto.CompactTextString(m) } func (*IncrementScoreRequest) ProtoMessage() {} func (*IncrementScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{14} + return fileDescriptor_d33144d47ebf9898, []int{11} } func (m *IncrementScoreRequest) XXX_Unmarshal(b []byte) error { @@ -819,6 +644,7 @@ func (m *IncrementScoreRequest) GetBody() *IncrementScoreRequest_Body { return nil } +// Body represents the increment payload. type IncrementScoreRequest_Body struct { Increment int64 `protobuf:"varint,1,opt,name=increment,proto3" json:"increment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -830,7 +656,7 @@ func (m *IncrementScoreRequest_Body) Reset() { *m = IncrementScoreReques func (m *IncrementScoreRequest_Body) String() string { return proto.CompactTextString(m) } func (*IncrementScoreRequest_Body) ProtoMessage() {} func (*IncrementScoreRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{14, 0} + return fileDescriptor_d33144d47ebf9898, []int{11, 0} } func (m *IncrementScoreRequest_Body) XXX_Unmarshal(b []byte) error { @@ -872,7 +698,7 @@ func (m *GetMemberRequest) Reset() { *m = GetMemberRequest{} } func (m *GetMemberRequest) String() string { return proto.CompactTextString(m) } func (*GetMemberRequest) ProtoMessage() {} func (*GetMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{15} + return fileDescriptor_d33144d47ebf9898, []int{12} } func (m *GetMemberRequest) XXX_Unmarshal(b []byte) error { @@ -921,6 +747,95 @@ func (m *GetMemberRequest) GetScoreTTL() bool { return false } +type DefaultMemberResponse struct { + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + PublicID string `protobuf:"bytes,2,opt,name=publicID,proto3" json:"publicID,omitempty"` + //implemented as double because int64 is exported as string through grpc-gateway + Score float64 `protobuf:"fixed64,3,opt,name=score,proto3" json:"score,omitempty"` + //the full int64 score received from Redis + IntScore int64 `protobuf:"varint,4,opt,name=int_score,json=intScore,proto3" json:"int_score,omitempty"` + Rank int32 `protobuf:"varint,5,opt,name=rank,proto3" json:"rank,omitempty"` + PreviousRank int32 `protobuf:"varint,6,opt,name=previous_rank,json=previousRank,proto3" json:"previous_rank,omitempty"` + ExpireAt int32 `protobuf:"varint,7,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DefaultMemberResponse) Reset() { *m = DefaultMemberResponse{} } +func (m *DefaultMemberResponse) String() string { return proto.CompactTextString(m) } +func (*DefaultMemberResponse) ProtoMessage() {} +func (*DefaultMemberResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d33144d47ebf9898, []int{13} +} + +func (m *DefaultMemberResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DefaultMemberResponse.Unmarshal(m, b) +} +func (m *DefaultMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DefaultMemberResponse.Marshal(b, m, deterministic) +} +func (m *DefaultMemberResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMemberResponse.Merge(m, src) +} +func (m *DefaultMemberResponse) XXX_Size() int { + return xxx_messageInfo_DefaultMemberResponse.Size(m) +} +func (m *DefaultMemberResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMemberResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMemberResponse proto.InternalMessageInfo + +func (m *DefaultMemberResponse) GetSuccess() bool { + if m != nil { + return m.Success + } + return false +} + +func (m *DefaultMemberResponse) GetPublicID() string { + if m != nil { + return m.PublicID + } + return "" +} + +func (m *DefaultMemberResponse) GetScore() float64 { + if m != nil { + return m.Score + } + return 0 +} + +func (m *DefaultMemberResponse) GetIntScore() int64 { + if m != nil { + return m.IntScore + } + return 0 +} + +func (m *DefaultMemberResponse) GetRank() int32 { + if m != nil { + return m.Rank + } + return 0 +} + +func (m *DefaultMemberResponse) GetPreviousRank() int32 { + if m != nil { + return m.PreviousRank + } + return 0 +} + +func (m *DefaultMemberResponse) GetExpireAt() int32 { + if m != nil { + return m.ExpireAt + } + return 0 +} + type GetMembersRequest struct { LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId,proto3" json:"leaderboard_id,omitempty"` Order string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"` @@ -935,7 +850,7 @@ func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } func (*GetMembersRequest) ProtoMessage() {} func (*GetMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{16} + return fileDescriptor_d33144d47ebf9898, []int{14} } func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error { @@ -997,7 +912,7 @@ func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } func (*GetMembersResponse) ProtoMessage() {} func (*GetMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{17} + return fileDescriptor_d33144d47ebf9898, []int{15} } func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error { @@ -1051,7 +966,7 @@ func (m *RemoveMemberRequest) Reset() { *m = RemoveMemberRequest{} } func (m *RemoveMemberRequest) String() string { return proto.CompactTextString(m) } func (*RemoveMemberRequest) ProtoMessage() {} func (*RemoveMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{18} + return fileDescriptor_d33144d47ebf9898, []int{16} } func (m *RemoveMemberRequest) XXX_Unmarshal(b []byte) error { @@ -1098,7 +1013,7 @@ func (m *RemoveMembersRequest) Reset() { *m = RemoveMembersRequest{} } func (m *RemoveMembersRequest) String() string { return proto.CompactTextString(m) } func (*RemoveMembersRequest) ProtoMessage() {} func (*RemoveMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{19} + return fileDescriptor_d33144d47ebf9898, []int{17} } func (m *RemoveMembersRequest) XXX_Unmarshal(b []byte) error { @@ -1133,6 +1048,53 @@ func (m *RemoveMembersRequest) GetIds() string { return "" } +type BasicResponse struct { + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BasicResponse) Reset() { *m = BasicResponse{} } +func (m *BasicResponse) String() string { return proto.CompactTextString(m) } +func (*BasicResponse) ProtoMessage() {} +func (*BasicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d33144d47ebf9898, []int{18} +} + +func (m *BasicResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BasicResponse.Unmarshal(m, b) +} +func (m *BasicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BasicResponse.Marshal(b, m, deterministic) +} +func (m *BasicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BasicResponse.Merge(m, src) +} +func (m *BasicResponse) XXX_Size() int { + return xxx_messageInfo_BasicResponse.Size(m) +} +func (m *BasicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BasicResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BasicResponse proto.InternalMessageInfo + +func (m *BasicResponse) GetSuccess() bool { + if m != nil { + return m.Success + } + return false +} + +func (m *BasicResponse) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + type GetRankRequest struct { LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId,proto3" json:"leaderboard_id,omitempty"` MemberPublicId string `protobuf:"bytes,2,opt,name=member_public_id,json=memberPublicId,proto3" json:"member_public_id,omitempty"` @@ -1146,7 +1108,7 @@ func (m *GetRankRequest) Reset() { *m = GetRankRequest{} } func (m *GetRankRequest) String() string { return proto.CompactTextString(m) } func (*GetRankRequest) ProtoMessage() {} func (*GetRankRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{20} + return fileDescriptor_d33144d47ebf9898, []int{19} } func (m *GetRankRequest) XXX_Unmarshal(b []byte) error { @@ -1201,7 +1163,7 @@ func (m *GetRankResponse) Reset() { *m = GetRankResponse{} } func (m *GetRankResponse) String() string { return proto.CompactTextString(m) } func (*GetRankResponse) ProtoMessage() {} func (*GetRankResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{21} + return fileDescriptor_d33144d47ebf9898, []int{20} } func (m *GetRankResponse) XXX_Unmarshal(b []byte) error { @@ -1258,7 +1220,7 @@ func (m *GetAroundMemberRequest) Reset() { *m = GetAroundMemberRequest{} func (m *GetAroundMemberRequest) String() string { return proto.CompactTextString(m) } func (*GetAroundMemberRequest) ProtoMessage() {} func (*GetAroundMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{22} + return fileDescriptor_d33144d47ebf9898, []int{21} } func (m *GetAroundMemberRequest) XXX_Unmarshal(b []byte) error { @@ -1328,7 +1290,7 @@ func (m *GetTopMembersRequest) Reset() { *m = GetTopMembersRequest{} } func (m *GetTopMembersRequest) String() string { return proto.CompactTextString(m) } func (*GetTopMembersRequest) ProtoMessage() {} func (*GetTopMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{23} + return fileDescriptor_d33144d47ebf9898, []int{22} } func (m *GetTopMembersRequest) XXX_Unmarshal(b []byte) error { @@ -1390,7 +1352,7 @@ func (m *GetTopPercentageRequest) Reset() { *m = GetTopPercentageRequest func (m *GetTopPercentageRequest) String() string { return proto.CompactTextString(m) } func (*GetTopPercentageRequest) ProtoMessage() {} func (*GetTopPercentageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{24} + return fileDescriptor_d33144d47ebf9898, []int{23} } func (m *GetTopPercentageRequest) XXX_Unmarshal(b []byte) error { @@ -1446,7 +1408,7 @@ func (m *MultiUpsertScoreRequest) Reset() { *m = MultiUpsertScoreRequest func (m *MultiUpsertScoreRequest) String() string { return proto.CompactTextString(m) } func (*MultiUpsertScoreRequest) ProtoMessage() {} func (*MultiUpsertScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{25} + return fileDescriptor_d33144d47ebf9898, []int{24} } func (m *MultiUpsertScoreRequest) XXX_Unmarshal(b []byte) error { @@ -1495,6 +1457,7 @@ func (m *MultiUpsertScoreRequest) GetScoreMultiChange() *MultiUpsertScoreRequest return nil } +// ScoreMultiChange is the payload to update the score of a member on multiple leaderboards. type MultiUpsertScoreRequest_ScoreMultiChange struct { Score int64 `protobuf:"varint,1,opt,name=score,proto3" json:"score,omitempty"` Leaderboards []string `protobuf:"bytes,2,rep,name=leaderboards,proto3" json:"leaderboards,omitempty"` @@ -1509,7 +1472,7 @@ func (m *MultiUpsertScoreRequest_ScoreMultiChange) Reset() { func (m *MultiUpsertScoreRequest_ScoreMultiChange) String() string { return proto.CompactTextString(m) } func (*MultiUpsertScoreRequest_ScoreMultiChange) ProtoMessage() {} func (*MultiUpsertScoreRequest_ScoreMultiChange) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{25, 0} + return fileDescriptor_d33144d47ebf9898, []int{24, 0} } func (m *MultiUpsertScoreRequest_ScoreMultiChange) XXX_Unmarshal(b []byte) error { @@ -1556,7 +1519,7 @@ func (m *MultiUpsertScoreResponse) Reset() { *m = MultiUpsertScoreRespon func (m *MultiUpsertScoreResponse) String() string { return proto.CompactTextString(m) } func (*MultiUpsertScoreResponse) ProtoMessage() {} func (*MultiUpsertScoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{26} + return fileDescriptor_d33144d47ebf9898, []int{25} } func (m *MultiUpsertScoreResponse) XXX_Unmarshal(b []byte) error { @@ -1591,9 +1554,12 @@ func (m *MultiUpsertScoreResponse) GetScores() []*MultiUpsertScoreResponse_Membe return nil } +// Member represents the information regarding a single member in response to a multi upsert score. type MultiUpsertScoreResponse_Member struct { - PublicID string `protobuf:"bytes,1,opt,name=publicID,proto3" json:"publicID,omitempty"` - Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` + PublicID string `protobuf:"bytes,1,opt,name=publicID,proto3" json:"publicID,omitempty"` + //implemented as double because int64 is exported as string through grpc-gateway + Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` + //the full int64 score received from Redis IntScore int64 `protobuf:"varint,3,opt,name=int_score,json=intScore,proto3" json:"int_score,omitempty"` Rank int32 `protobuf:"varint,4,opt,name=rank,proto3" json:"rank,omitempty"` PreviousRank int32 `protobuf:"varint,5,opt,name=previous_rank,json=previousRank,proto3" json:"previous_rank,omitempty"` @@ -1608,7 +1574,7 @@ func (m *MultiUpsertScoreResponse_Member) Reset() { *m = MultiUpsertScor func (m *MultiUpsertScoreResponse_Member) String() string { return proto.CompactTextString(m) } func (*MultiUpsertScoreResponse_Member) ProtoMessage() {} func (*MultiUpsertScoreResponse_Member) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{26, 0} + return fileDescriptor_d33144d47ebf9898, []int{25, 0} } func (m *MultiUpsertScoreResponse_Member) XXX_Unmarshal(b []byte) error { @@ -1692,7 +1658,7 @@ func (m *MultiGetRankRequest) Reset() { *m = MultiGetRankRequest{} } func (m *MultiGetRankRequest) String() string { return proto.CompactTextString(m) } func (*MultiGetRankRequest) ProtoMessage() {} func (*MultiGetRankRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{27} + return fileDescriptor_d33144d47ebf9898, []int{26} } func (m *MultiGetRankRequest) XXX_Unmarshal(b []byte) error { @@ -1753,7 +1719,7 @@ func (m *MultiGetRankResponse) Reset() { *m = MultiGetRankResponse{} } func (m *MultiGetRankResponse) String() string { return proto.CompactTextString(m) } func (*MultiGetRankResponse) ProtoMessage() {} func (*MultiGetRankResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{28} + return fileDescriptor_d33144d47ebf9898, []int{27} } func (m *MultiGetRankResponse) XXX_Unmarshal(b []byte) error { @@ -1788,6 +1754,7 @@ func (m *MultiGetRankResponse) GetScores() []*MultiGetRankResponse_Member { return nil } +// Member represents member information retrieved from one the leaderboards during MultiGetRankResponse operation. type MultiGetRankResponse_Member struct { LeaderboardID string `protobuf:"bytes,1,opt,name=leaderboardID,proto3" json:"leaderboardID,omitempty"` Rank int32 `protobuf:"varint,2,opt,name=rank,proto3" json:"rank,omitempty"` @@ -1803,7 +1770,7 @@ func (m *MultiGetRankResponse_Member) Reset() { *m = MultiGetRankRespons func (m *MultiGetRankResponse_Member) String() string { return proto.CompactTextString(m) } func (*MultiGetRankResponse_Member) ProtoMessage() {} func (*MultiGetRankResponse_Member) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{28, 0} + return fileDescriptor_d33144d47ebf9898, []int{27, 0} } func (m *MultiGetRankResponse_Member) XXX_Unmarshal(b []byte) error { @@ -1873,7 +1840,7 @@ func (m *GetAroundScoreRequest) Reset() { *m = GetAroundScoreRequest{} } func (m *GetAroundScoreRequest) String() string { return proto.CompactTextString(m) } func (*GetAroundScoreRequest) ProtoMessage() {} func (*GetAroundScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d33144d47ebf9898, []int{29} + return fileDescriptor_d33144d47ebf9898, []int{28} } func (m *GetAroundScoreRequest) XXX_Unmarshal(b []byte) error { @@ -1922,6 +1889,53 @@ func (m *GetAroundScoreRequest) GetPageSize() int32 { return 0 } +type MemberListResponse struct { + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Members []*MemberResponse `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MemberListResponse) Reset() { *m = MemberListResponse{} } +func (m *MemberListResponse) String() string { return proto.CompactTextString(m) } +func (*MemberListResponse) ProtoMessage() {} +func (*MemberListResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d33144d47ebf9898, []int{29} +} + +func (m *MemberListResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MemberListResponse.Unmarshal(m, b) +} +func (m *MemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MemberListResponse.Marshal(b, m, deterministic) +} +func (m *MemberListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemberListResponse.Merge(m, src) +} +func (m *MemberListResponse) XXX_Size() int { + return xxx_messageInfo_MemberListResponse.Size(m) +} +func (m *MemberListResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MemberListResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MemberListResponse proto.InternalMessageInfo + +func (m *MemberListResponse) GetSuccess() bool { + if m != nil { + return m.Success + } + return false +} + +func (m *MemberListResponse) GetMembers() []*MemberResponse { + if m != nil { + return m.Members + } + return nil +} + func init() { proto.RegisterType((*HealthCheckResponse)(nil), "podium.api.v1.HealthCheckResponse") proto.RegisterType((*StatusResponse)(nil), "podium.api.v1.StatusResponse") @@ -1930,20 +1944,19 @@ func init() { proto.RegisterType((*ScoreUpserts)(nil), "podium.api.v1.ScoreUpserts") proto.RegisterType((*BulkUpsertScoresRequest)(nil), "podium.api.v1.BulkUpsertScoresRequest") proto.RegisterType((*MemberResponse)(nil), "podium.api.v1.MemberResponse") - proto.RegisterType((*MemberListResponse)(nil), "podium.api.v1.MemberListResponse") proto.RegisterType((*ScoreChange)(nil), "podium.api.v1.ScoreChange") proto.RegisterType((*UpsertScoreRequest)(nil), "podium.api.v1.UpsertScoreRequest") - proto.RegisterType((*DefaultMemberResponse)(nil), "podium.api.v1.DefaultMemberResponse") - proto.RegisterType((*BasicResponse)(nil), "podium.api.v1.BasicResponse") proto.RegisterType((*TotalMembersRequest)(nil), "podium.api.v1.TotalMembersRequest") proto.RegisterType((*TotalMembersResponse)(nil), "podium.api.v1.TotalMembersResponse") proto.RegisterType((*IncrementScoreRequest)(nil), "podium.api.v1.IncrementScoreRequest") proto.RegisterType((*IncrementScoreRequest_Body)(nil), "podium.api.v1.IncrementScoreRequest.Body") proto.RegisterType((*GetMemberRequest)(nil), "podium.api.v1.GetMemberRequest") + proto.RegisterType((*DefaultMemberResponse)(nil), "podium.api.v1.DefaultMemberResponse") proto.RegisterType((*GetMembersRequest)(nil), "podium.api.v1.GetMembersRequest") proto.RegisterType((*GetMembersResponse)(nil), "podium.api.v1.GetMembersResponse") proto.RegisterType((*RemoveMemberRequest)(nil), "podium.api.v1.RemoveMemberRequest") proto.RegisterType((*RemoveMembersRequest)(nil), "podium.api.v1.RemoveMembersRequest") + proto.RegisterType((*BasicResponse)(nil), "podium.api.v1.BasicResponse") proto.RegisterType((*GetRankRequest)(nil), "podium.api.v1.GetRankRequest") proto.RegisterType((*GetRankResponse)(nil), "podium.api.v1.GetRankResponse") proto.RegisterType((*GetAroundMemberRequest)(nil), "podium.api.v1.GetAroundMemberRequest") @@ -1957,119 +1970,123 @@ func init() { proto.RegisterType((*MultiGetRankResponse)(nil), "podium.api.v1.MultiGetRankResponse") proto.RegisterType((*MultiGetRankResponse_Member)(nil), "podium.api.v1.MultiGetRankResponse.Member") proto.RegisterType((*GetAroundScoreRequest)(nil), "podium.api.v1.GetAroundScoreRequest") + proto.RegisterType((*MemberListResponse)(nil), "podium.api.v1.MemberListResponse") } func init() { proto.RegisterFile("proto/podium/api/v1/podium.proto", fileDescriptor_d33144d47ebf9898) } var fileDescriptor_d33144d47ebf9898 = []byte{ - // 1700 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4b, 0x6f, 0x1b, 0xd5, - 0x17, 0xd7, 0xf5, 0x23, 0xb1, 0x4f, 0x1e, 0x4d, 0x6f, 0x92, 0xd6, 0x9a, 0x24, 0xad, 0x7b, 0x93, - 0xfe, 0x93, 0xe6, 0x4f, 0xed, 0x36, 0x6d, 0x29, 0x2a, 0xad, 0x4a, 0xd2, 0xd0, 0x10, 0x94, 0x96, - 0x68, 0x12, 0x56, 0x2c, 0xac, 0x89, 0x7d, 0xe3, 0x8e, 0x62, 0xcf, 0x98, 0xb9, 0xd7, 0x09, 0x69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eb, 0xd9, 0x91, 0xc8, 0x71, 0xa4, 0x8d, - 0x5f, 0x37, 0x78, 0x49, 0x3e, 0x49, 0x0a, 0x17, 0x67, 0x74, 0x43, 0xfa, 0x02, 0x63, 0x48, 0x09, - 0xbb, 0x52, 0x02, 0xbb, 0xf8, 0x8f, 0x67, 0x61, 0xc4, 0xb6, 0x4f, 0x37, 0x9b, 0x4c, 0x1a, 0x9d, - 0x16, 0x0f, 0x87, 0x5b, 0x42, 0x61, 0xf8, 0x14, 0x64, 0xe9, 0x07, 0x0d, 0xdd, 0xa2, 0x25, 0x8d, - 0xe7, 0x06, 0xa4, 0xe5, 0x52, 0xb0, 0x2c, 0xa3, 0x6d, 0x32, 0xdd, 0xa6, 0x77, 0x6e, 0x50, 0x3e, - 0x6b, 0xad, 0x49, 0x15, 0xb0, 0x34, 0x69, 0x43, 0x67, 0xdc, 0x35, 0x2b, 0x07, 0x83, 0xac, 0x59, - 0x2e, 0x53, 0xc6, 0x84, 0x55, 0x19, 0xb5, 0xb5, 0xc4, 0x37, 0xdb, 0x71, 0x4f, 0x88, 0xb8, 0xcf, - 0x04, 0xfc, 0xe7, 0x77, 0x50, 0x3b, 0xf4, 0xb3, 0x0e, 0x03, 0xef, 0x3d, 0xd2, 0x8c, 0x2a, 0x6d, - 0x3b, 0x07, 0x79, 0x59, 0xf6, 0x3b, 0x02, 0xec, 0xe1, 0x46, 0x9f, 0xd4, 0x58, 0x80, 0x31, 0xa9, - 0xad, 0x24, 0x63, 0x60, 0x6f, 0x4c, 0x88, 0x8d, 0xa3, 0x52, 0xbe, 0x29, 0x43, 0x13, 0x20, 0x51, - 0xb2, 0x03, 0x89, 0x52, 0x01, 0x12, 0xdd, 0x01, 0x49, 0x89, 0x52, 0x59, 0x98, 0x21, 0x62, 0x11, - 0xc3, 0x7d, 0x69, 0xa8, 0x3a, 0xc4, 0xda, 0x0b, 0xf2, 0x1b, 0x82, 0xc9, 0x55, 0xba, 0xab, 0x35, - 0x6b, 0x3c, 0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xa0, 0xdd, 0xc4, 0x37, 0xfa, 0x84, 0xa6, 0x09, 0x75, 0xf8, 0x4b, - 0x24, 0x06, 0x42, 0x4f, 0xa9, 0x0c, 0x1d, 0xe8, 0xc8, 0x4a, 0xda, 0x47, 0x26, 0xc6, 0x97, 0xe2, - 0x33, 0x71, 0xf1, 0x48, 0xfc, 0xba, 0x70, 0x3e, 0x45, 0x30, 0xe2, 0x9b, 0x7b, 0x42, 0x6c, 0x89, - 0x9a, 0x8a, 0x7a, 0x01, 0x73, 0x59, 0x80, 0x99, 0xc7, 0x17, 0xa3, 0xc0, 0x70, 0xb3, 0x51, 0x3c, - 0xf2, 0x0c, 0x4c, 0x4f, 0xf0, 0x73, 0x79, 0xfd, 0xe2, 0x9b, 0x76, 0x42, 0x55, 0x2a, 0x66, 0x1c, - 0xea, 0x05, 0xce, 0x75, 0x01, 0xa7, 0x80, 0x5f, 0x89, 0x81, 0x73, 0xd9, 0x19, 0x8b, 0x8a, 0x47, - 0xed, 0xf9, 0xe8, 0x09, 0xfe, 0x01, 0xc1, 0xb4, 0xa7, 0x18, 0x89, 0x06, 0xcd, 0x53, 0x9d, 0xc3, - 0x75, 0x34, 0x66, 0x20, 0x51, 0xe6, 0x7b, 0x6c, 0xec, 0xc9, 0x6b, 0x02, 0xe7, 0x92, 0x32, 0x5d, - 0xac, 0xc7, 0x26, 0x5e, 0x76, 0x2b, 0x62, 0x42, 0xc2, 0xcf, 0x10, 0xe4, 0x9c, 0x73, 0x14, 0xc6, - 0x49, 0x3a, 0xb6, 0x9a, 0xd1, 0xb5, 0x2b, 0xaa, 0x1d, 0x25, 0x73, 0x02, 0xdf, 0x39, 0xdc, 0x11, - 0xdf, 0xce, 0x80, 0xe8, 0x8d, 0xae, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0x67, 0x11, 0x78, 0x6b, - 0x88, 0x1a, 0x00, 0x00, + // 1756 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0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xa4, 0xa6, 0x8a, 0x25, 0x71, 0x0d, 0x41, 0x51, 0x84, 0x49, 0xca, 0x8b, + 0xaa, 0x69, 0xd6, 0x1a, 0x38, 0xfe, 0xbc, 0x65, 0x72, 0xad, 0x2a, 0x95, 0xdb, 0xa3, 0x45, 0x92, + 0xbb, 0x30, 0xea, 0x5f, 0xed, 0xda, 0x46, 0x16, 0x06, 0x58, 0xbd, 0x54, 0xa2, 0x8c, 0x89, 0x75, + 0x49, 0xb5, 0x31, 0x74, 0x58, 0x2e, 0x99, 0x75, 0x83, 0x0b, 0x1a, 0xfa, 0x54, 0x39, 0x20, 0xbf, + 0x23, 0x18, 0x5b, 0x33, 0x4a, 0x36, 0xad, 0x51, 0xe3, 0x84, 0x89, 0xee, 0xe4, 0x27, 0xb7, 0x20, + 0xb1, 0x6d, 0x96, 0x0f, 0x5c, 0xf7, 0xb8, 0x18, 0xe0, 0x30, 0x14, 0x60, 0x7e, 0xd9, 0x2c, 0x1f, + 0xa8, 0x62, 0x99, 0x32, 0x0d, 0x09, 0x67, 0x84, 0x27, 0x1c, 0x3b, 0x77, 0xe7, 0xba, 0xd6, 0xd4, + 0x12, 0x90, 0xaf, 0x11, 0x0c, 0xaf, 0x52, 0xde, 0xf0, 0xa6, 0x13, 0xba, 0xe6, 0x28, 0xf4, 0x99, + 0x76, 0x99, 0xda, 0xe2, 0x8e, 0x29, 0x55, 0x0e, 0xda, 0x0c, 0x29, 0xd9, 0xba, 0x3c, 0xf9, 0x05, + 0xc1, 0xd8, 0x0a, 0xdd, 0xd1, 0xea, 0x55, 0x1e, 0xf0, 0xf4, 0x68, 0x6d, 0x7a, 0x63, 0x40, 0x2c, + 0x2a, 0x06, 0xc4, 0x23, 0x63, 0x40, 0x22, 0x22, 0x06, 0xf4, 0x75, 0x8a, 0x01, 0xfd, 0x47, 0xc5, + 0x80, 0x01, 0x7f, 0x0c, 0x20, 0xef, 0xc3, 0xe9, 0x26, 0xdf, 0xbd, 0x86, 0xdc, 0x26,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 0x3f, 0x81, + 0x73, 0x51, 0x99, 0x28, 0xd4, 0x22, 0x03, 0x2f, 0xbb, 0x11, 0xd2, 0x8a, 0xe1, 0xa7, 0x08, 0xb2, + 0xae, 0x1f, 0xb5, 0xe3, 0x24, 0x1d, 0x6b, 0xda, 0xf0, 0xdc, 0x15, 0x56, 0xf7, 0x92, 0x69, 0x81, + 0xef, 0x1c, 0xee, 0x88, 0x6f, 0xf9, 0x01, 0xcc, 0x94, 0xcc, 0x5a, 0x9e, 0x9b, 0xd6, 0x8e, 0x4d, + 0x69, 0x45, 0xab, 0x51, 0xd6, 0xd8, 0xdc, 0x77, 0xc6, 0x72, 0x5a, 0x16, 0x6b, 0x1b, 0x4e, 0x29, + 0xb5, 0x81, 0xde, 0xf1, 0xff, 0x57, 0xea, 0x45, 0x2c, 0xbe, 0xb1, 0xf4, 0xf6, 0x77, 0xb1, 0x8c, + 0x9c, 0x94, 0x5f, 0xb2, 0xf4, 0xfc, 0x5b, 0x0b, 0xdb, 0xfd, 0xa2, 0xf0, 0xba, 0xf2, 0x47, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xdd, 0x80, 0x51, 0x6d, 0xe5, 0x1a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2084,23 +2101,42 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type PodiumAPIClient interface { + // HealthCheck verifies and returns service health. HealthCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) + // Status allows to clients to know additional information about Podium execution. + // Currently only returns error rate of the service. Status(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*StatusResponse, error) + // RemoveLeaderboard removes a specified leaderboard. RemoveLeaderboard(ctx context.Context, in *RemoveLeaderboardRequest, opts ...grpc.CallOption) (*BasicResponse, error) + // BulkUpsertScores allows clients to send multiple scores in a single request. BulkUpsertScores(ctx context.Context, in *BulkUpsertScoresRequest, opts ...grpc.CallOption) (*MemberListResponse, error) + // UpsertScore submits a single leaderboard score to Podium. UpsertScore(ctx context.Context, in *UpsertScoreRequest, opts ...grpc.CallOption) (*DefaultMemberResponse, error) + // TotalMembers returns the number of members on a leaderboard. TotalMembers(ctx context.Context, in *TotalMembersRequest, opts ...grpc.CallOption) (*TotalMembersResponse, error) + // IncrementScore increments a member score. IncrementScore(ctx context.Context, in *IncrementScoreRequest, opts ...grpc.CallOption) (*DefaultMemberResponse, error) + // GetMember retrieves leaderboard information from a member. GetMember(ctx context.Context, in *GetMemberRequest, opts ...grpc.CallOption) (*DefaultMemberResponse, error) + // GetMembers retrieves information about multiple members of a leaderboard. GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) + // RemoveMember removes a member from a leaderboard. RemoveMember(ctx context.Context, in *RemoveMemberRequest, opts ...grpc.CallOption) (*BasicResponse, error) + // RemoveMembers allow the removal of multiple members of a leaderboard. RemoveMembers(ctx context.Context, in *RemoveMembersRequest, opts ...grpc.CallOption) (*BasicResponse, error) + // GetRank retrieves ranking information about a member. GetRank(ctx context.Context, in *GetRankRequest, opts ...grpc.CallOption) (*GetRankResponse, error) + // GetAroundMember retrieves the closest members to another member on the leaderboard. GetAroundMember(ctx context.Context, in *GetAroundMemberRequest, opts ...grpc.CallOption) (*MemberListResponse, error) + // GetAroundScore retrieves the closest members to a score on the leaderboard. GetAroundScore(ctx context.Context, in *GetAroundScoreRequest, opts ...grpc.CallOption) (*MemberListResponse, error) + // GetTopMembers retrieves the top ranking members of a leaderboard. GetTopMembers(ctx context.Context, in *GetTopMembersRequest, opts ...grpc.CallOption) (*MemberListResponse, error) + // GetTopPercentage retrieves a percentage of the top members of the leaderboard. GetTopPercentage(ctx context.Context, in *GetTopPercentageRequest, opts ...grpc.CallOption) (*MemberListResponse, error) + // UpsertScoreMultiLeaderboards sends a member score to multiple leaderboards. UpsertScoreMultiLeaderboards(ctx context.Context, in *MultiUpsertScoreRequest, opts ...grpc.CallOption) (*MultiUpsertScoreResponse, error) + // GetRankMultiLeaderboards retrieves information about a member in multiple leaderboards. GetRankMultiLeaderboards(ctx context.Context, in *MultiGetRankRequest, opts ...grpc.CallOption) (*MultiGetRankResponse, error) } @@ -2276,23 +2312,42 @@ func (c *podiumAPIClient) GetRankMultiLeaderboards(ctx context.Context, in *Mult // PodiumAPIServer is the server API for PodiumAPI service. type PodiumAPIServer interface { + // HealthCheck verifies and returns service health. HealthCheck(context.Context, *empty.Empty) (*HealthCheckResponse, error) + // Status allows to clients to know additional information about Podium execution. + // Currently only returns error rate of the service. Status(context.Context, *empty.Empty) (*StatusResponse, error) + // RemoveLeaderboard removes a specified leaderboard. RemoveLeaderboard(context.Context, *RemoveLeaderboardRequest) (*BasicResponse, error) + // BulkUpsertScores allows clients to send multiple scores in a single request. BulkUpsertScores(context.Context, *BulkUpsertScoresRequest) (*MemberListResponse, error) + // UpsertScore submits a single leaderboard score to Podium. UpsertScore(context.Context, *UpsertScoreRequest) (*DefaultMemberResponse, error) + // TotalMembers returns the number of members on a leaderboard. TotalMembers(context.Context, *TotalMembersRequest) (*TotalMembersResponse, error) + // IncrementScore increments a member score. IncrementScore(context.Context, *IncrementScoreRequest) (*DefaultMemberResponse, error) + // GetMember retrieves leaderboard information from a member. GetMember(context.Context, *GetMemberRequest) (*DefaultMemberResponse, error) + // GetMembers retrieves information about multiple members of a leaderboard. GetMembers(context.Context, *GetMembersRequest) (*GetMembersResponse, error) + // RemoveMember removes a member from a leaderboard. RemoveMember(context.Context, *RemoveMemberRequest) (*BasicResponse, error) + // RemoveMembers allow the removal of multiple members of a leaderboard. RemoveMembers(context.Context, *RemoveMembersRequest) (*BasicResponse, error) + // GetRank retrieves ranking information about a member. GetRank(context.Context, *GetRankRequest) (*GetRankResponse, error) + // GetAroundMember retrieves the closest members to another member on the leaderboard. GetAroundMember(context.Context, *GetAroundMemberRequest) (*MemberListResponse, error) + // GetAroundScore retrieves the closest members to a score on the leaderboard. GetAroundScore(context.Context, *GetAroundScoreRequest) (*MemberListResponse, error) + // GetTopMembers retrieves the top ranking members of a leaderboard. GetTopMembers(context.Context, *GetTopMembersRequest) (*MemberListResponse, error) + // GetTopPercentage retrieves a percentage of the top members of the leaderboard. GetTopPercentage(context.Context, *GetTopPercentageRequest) (*MemberListResponse, error) + // UpsertScoreMultiLeaderboards sends a member score to multiple leaderboards. UpsertScoreMultiLeaderboards(context.Context, *MultiUpsertScoreRequest) (*MultiUpsertScoreResponse, error) + // GetRankMultiLeaderboards retrieves information about a member in multiple leaderboards. GetRankMultiLeaderboards(context.Context, *MultiGetRankRequest) (*MultiGetRankResponse, error) } diff --git a/proto/podium/api/v1/podium.proto b/proto/podium/api/v1/podium.proto index bf7300c..8860c91 100644 --- a/proto/podium/api/v1/podium.proto +++ b/proto/podium/api/v1/podium.proto @@ -1,305 +1,371 @@ syntax = "proto3"; + package podium.api.v1; +option csharp_namespace = "Podium.Api.V1"; +option go_package = "podium.api.v1"; +option java_multiple_files = true; +option java_outer_classname = "PodiumProto"; +option java_package = "com.topfreegames.podium.podium.api.v1"; +option objc_class_prefix = "PAX"; + + import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; +// Podium is a service that provides leaderboard functionality. +// Games can manage multiple leaderboards with this service. service PodiumAPI { - rpc HealthCheck (google.protobuf.Empty) returns (HealthCheckResponse); - rpc Status (google.protobuf.Empty) returns (StatusResponse); - rpc RemoveLeaderboard (RemoveLeaderboardRequest) returns (BasicResponse) { - option (google.api.http) = { - delete: "/l/{leaderboard_id}" - }; - } - rpc BulkUpsertScores (BulkUpsertScoresRequest) returns (MemberListResponse) { - option (google.api.http) = { - put: "/l/{leaderboard_id}/scores" - body: "score_upserts" - }; - } - rpc UpsertScore (UpsertScoreRequest) returns (DefaultMemberResponse) { - option (google.api.http) = { - put: "/l/{leaderboard_id}/members/{member_public_id}/score" - body: "score_change" - }; - } - rpc TotalMembers (TotalMembersRequest) returns (TotalMembersResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/members-count" - }; - } - rpc IncrementScore (IncrementScoreRequest) returns (DefaultMemberResponse) { - option (google.api.http) = { - patch: "/l/{leaderboard_id}/members/{member_public_id}/score" - body: "body" - }; - } - rpc GetMember (GetMemberRequest) returns (DefaultMemberResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/members/{member_public_id}" - }; - } - rpc GetMembers (GetMembersRequest) returns (GetMembersResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/members" - }; - } - rpc RemoveMember (RemoveMemberRequest) returns (BasicResponse) { - option (google.api.http) = { - delete: "/l/{leaderboard_id}/members/{member_public_id}" - }; - } - rpc RemoveMembers (RemoveMembersRequest) returns (BasicResponse) { - option (google.api.http) = { - delete: "/l/{leaderboard_id}/members" - }; - } - rpc GetRank (GetRankRequest) returns (GetRankResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/members/{member_public_id}/rank" - }; - } - rpc GetAroundMember (GetAroundMemberRequest) returns (MemberListResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/members/{member_public_id}/around" - }; - } - rpc GetAroundScore (GetAroundScoreRequest) returns (MemberListResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/scores/{score}/around" - }; - } - rpc GetTopMembers (GetTopMembersRequest) returns (MemberListResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/top/{page_number}" - }; - } - rpc GetTopPercentage (GetTopPercentageRequest) returns (MemberListResponse) { - option (google.api.http) = { - get: "/l/{leaderboard_id}/top-percent/{percentage}" - }; - } - rpc UpsertScoreMultiLeaderboards (MultiUpsertScoreRequest) returns (MultiUpsertScoreResponse) { - option (google.api.http) = { - put: "/m/{member_public_id}/scores" - body: "score_multi_change" - }; - } - rpc GetRankMultiLeaderboards (MultiGetRankRequest) returns (MultiGetRankResponse) { - option (google.api.http) = { - get: "/m/{member_public_id}/scores" - }; - } + + // HealthCheck verifies and returns service health. + rpc HealthCheck(google.protobuf.Empty) returns (HealthCheckResponse); + + // Status allows to clients to know additional information about Podium execution. + // Currently only returns error rate of the service. + rpc Status(google.protobuf.Empty) returns (StatusResponse); + + // RemoveLeaderboard removes a specified leaderboard. + rpc RemoveLeaderboard(RemoveLeaderboardRequest) returns (BasicResponse) { + option (google.api.http) = { + delete: "/l/{leaderboard_id}" + }; + } + + // BulkUpsertScores allows clients to send multiple scores in a single request. + rpc BulkUpsertScores(BulkUpsertScoresRequest) returns (MemberListResponse) { + option (google.api.http) = { + put: "/l/{leaderboard_id}/scores" + body: "score_upserts" + }; + } + + // UpsertScore submits a single leaderboard score to Podium. + rpc UpsertScore(UpsertScoreRequest) returns (DefaultMemberResponse) { + option (google.api.http) = { + put: "/l/{leaderboard_id}/members/{member_public_id}/score" + body: "score_change" + }; + } + + // TotalMembers returns the number of members on a leaderboard. + rpc TotalMembers(TotalMembersRequest) returns (TotalMembersResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/members-count" + }; + } + + // IncrementScore increments a member score. + rpc IncrementScore(IncrementScoreRequest) returns (DefaultMemberResponse) { + option (google.api.http) = { + patch: "/l/{leaderboard_id}/members/{member_public_id}/score" + body: "body" + }; + } + + // GetMember retrieves leaderboard information from a member. + rpc GetMember(GetMemberRequest) returns (DefaultMemberResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/members/{member_public_id}" + }; + } + + // GetMembers retrieves information about multiple members of a leaderboard. + rpc GetMembers(GetMembersRequest) returns (GetMembersResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/members" + }; + } + + // RemoveMember removes a member from a leaderboard. + rpc RemoveMember(RemoveMemberRequest) returns (BasicResponse) { + option (google.api.http) = { + delete: "/l/{leaderboard_id}/members/{member_public_id}" + }; + } + + // RemoveMembers allow the removal of multiple members of a leaderboard. + rpc RemoveMembers(RemoveMembersRequest) returns (BasicResponse) { + option (google.api.http) = { + delete: "/l/{leaderboard_id}/members" + }; + } + + // GetRank retrieves ranking information about a member. + rpc GetRank(GetRankRequest) returns (GetRankResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/members/{member_public_id}/rank" + }; + } + + // GetAroundMember retrieves the closest members to another member on the leaderboard. + rpc GetAroundMember(GetAroundMemberRequest) returns (MemberListResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/members/{member_public_id}/around" + }; + } + + // GetAroundScore retrieves the closest members to a score on the leaderboard. + rpc GetAroundScore(GetAroundScoreRequest) returns (MemberListResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/scores/{score}/around" + }; + } + + // GetTopMembers retrieves the top ranking members of a leaderboard. + rpc GetTopMembers(GetTopMembersRequest) returns (MemberListResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/top/{page_number}" + }; + } + + // GetTopPercentage retrieves a percentage of the top members of the leaderboard. + rpc GetTopPercentage(GetTopPercentageRequest) returns (MemberListResponse) { + option (google.api.http) = { + get: "/l/{leaderboard_id}/top-percent/{percentage}" + }; + } + + // UpsertScoreMultiLeaderboards sends a member score to multiple leaderboards. + rpc UpsertScoreMultiLeaderboards(MultiUpsertScoreRequest) returns (MultiUpsertScoreResponse) { + option (google.api.http) = { + put: "/m/{member_public_id}/scores" + body: "score_multi_change" + }; + } + + // GetRankMultiLeaderboards retrieves information about a member in multiple leaderboards. + rpc GetRankMultiLeaderboards(MultiGetRankRequest) returns (MultiGetRankResponse) { + option (google.api.http) = { + get: "/m/{member_public_id}/scores" + }; + } } message HealthCheckResponse { - string working_string = 1; + string working_string = 1; } message StatusResponse { - double error_rate = 1; + double error_rate = 1; } message RemoveLeaderboardRequest { - string leaderboard_id = 1; + string leaderboard_id = 1; } +// ScoreUpsert allow to provide score information about a single member. message ScoreUpsert { - string publicID = 1; - int64 score = 2; + string publicID = 1; + int64 score = 2; } +// ScoreUpserts represent multiple score submissions. message ScoreUpserts { - repeated ScoreUpsert members = 1; + repeated ScoreUpsert members = 1; } message BulkUpsertScoresRequest { - string leaderboard_id = 1; - bool prev_rank = 2; - int32 scoreTTL = 3; - ScoreUpserts score_upserts = 4; + string leaderboard_id = 1; + bool prev_rank = 2; + int32 scoreTTL = 3; + ScoreUpserts score_upserts = 4; } +// MemberResponse represents the full leaderboard information about a member. message MemberResponse { - string publicID = 1; - double score = 2; //implemented as double because int64 is exported as string through grpc-gateway - int64 int_score = 3; //the full int64 score received from Redis - int32 rank = 4; - int32 previous_rank = 5; - int32 expire_at = 6; - int32 position = 7; -} + string publicID = 1; -message MemberListResponse { - bool success = 1; - repeated MemberResponse members = 2; -} + //implemented as double because int64 is exported as string through grpc-gateway + double score = 2; -message ScoreChange { - int64 score = 1; -} + //the full int64 score received from Redis + int64 int_score = 3; -message UpsertScoreRequest { - string leaderboard_id = 1; - string member_public_id = 2; - bool prev_rank = 3; - int32 scoreTTL = 4; - ScoreChange score_change = 5; + int32 rank = 4; + int32 previous_rank = 5; + int32 expire_at = 6; + int32 position = 7; } -message DefaultMemberResponse { - bool success = 1; - string publicID = 2; - double score = 3; //implemented as double because int64 is exported as string through grpc-gateway - int64 int_score = 4; //the full int64 score received from Redis - int32 rank = 5; - int32 previous_rank = 6; - int32 expire_at = 7; +// ScoreChange is the score payload when upserting a score. +message ScoreChange { + int64 score = 1; } -message BasicResponse { - bool success = 1; - string reason = 2; +message UpsertScoreRequest { + string leaderboard_id = 1; + string member_public_id = 2; + bool prev_rank = 3; + int32 scoreTTL = 4; + ScoreChange score_change = 5; } message TotalMembersRequest { - string leaderboard_id = 1; + string leaderboard_id = 1; } message TotalMembersResponse { - bool success = 1; - int32 count = 2; + bool success = 1; + int32 count = 2; } message IncrementScoreRequest { - string leaderboard_id = 1; - string member_public_id = 2; - int32 scoreTTL = 3; - - message Body { - int64 increment = 1; - } - - Body body = 4; + string leaderboard_id = 1; + string member_public_id = 2; + int32 scoreTTL = 3; + + // Body represents the increment payload. + message Body { + int64 increment = 1; + } + Body body = 4; } message GetMemberRequest { - string leaderboard_id = 1; - string member_public_id = 2; - string order = 3; - bool scoreTTL = 4; + string leaderboard_id = 1; + string member_public_id = 2; + string order = 3; + bool scoreTTL = 4; +} + +message DefaultMemberResponse { + bool success = 1; + string publicID = 2; + + //implemented as double because int64 is exported as string through grpc-gateway + double score = 3; + + //the full int64 score received from Redis + int64 int_score = 4; + int32 rank = 5; + int32 previous_rank = 6; + int32 expire_at = 7; } message GetMembersRequest { - string leaderboard_id = 1; - string order = 2; - bool scoreTTL = 3; - string ids = 4; + string leaderboard_id = 1; + string order = 2; + bool scoreTTL = 3; + string ids = 4; } message GetMembersResponse { - bool success = 1; - repeated MemberResponse members = 2; - repeated string notFound = 3; + bool success = 1; + repeated MemberResponse members = 2; + repeated string notFound = 3; } message RemoveMemberRequest { - string leaderboard_id = 1; - string member_public_id = 2; + string leaderboard_id = 1; + string member_public_id = 2; } message RemoveMembersRequest { - string leaderboard_id = 1; - string ids = 2; + string leaderboard_id = 1; + string ids = 2; +} + +message BasicResponse { + bool success = 1; + string reason = 2; } message GetRankRequest { - string leaderboard_id = 1; - string member_public_id = 2; - string order = 3; + string leaderboard_id = 1; + string member_public_id = 2; + string order = 3; } message GetRankResponse { - bool success = 1; - string publicID = 2; - int32 rank = 3; + bool success = 1; + string publicID = 2; + int32 rank = 3; } message GetAroundMemberRequest { - string leaderboard_id = 1; - string member_public_id = 2; - string order = 3; - bool get_last_if_not_found = 4; - int32 page_size = 5; + string leaderboard_id = 1; + string member_public_id = 2; + string order = 3; + bool get_last_if_not_found = 4; + int32 page_size = 5; } message GetTopMembersRequest { - string leaderboard_id = 1; - int32 page_number = 2; - string order = 3; - int32 page_size = 5; + string leaderboard_id = 1; + int32 page_number = 2; + string order = 3; + int32 page_size = 5; } message GetTopPercentageRequest { - string leaderboard_id = 1; - int32 percentage = 2; - string order = 3; + string leaderboard_id = 1; + int32 percentage = 2; + string order = 3; } message MultiUpsertScoreRequest { - string member_public_id = 1; - int32 scoreTTL = 2; - bool prev_rank = 3; - - message ScoreMultiChange { - int64 score = 1; - repeated string leaderboards = 2; - } + string member_public_id = 1; + int32 scoreTTL = 2; + bool prev_rank = 3; - ScoreMultiChange score_multi_change = 4; + // ScoreMultiChange is the payload to update the score of a member on multiple leaderboards. + message ScoreMultiChange { + int64 score = 1; + repeated string leaderboards = 2; + } + ScoreMultiChange score_multi_change = 4; } message MultiUpsertScoreResponse { - bool success = 1; - - message Member { - string publicID = 1; - double score = 2; //implemented as double because int64 is exported as string through grpc-gateway - int64 int_score = 3; //the full int64 score received from Redis - int32 rank = 4; - int32 previous_rank = 5; - int32 expire_at = 6; - string leaderboardID = 8; - } - - repeated Member scores = 2; + bool success = 1; + + // Member represents the information regarding a single member in response to a multi upsert score. + message Member { + string publicID = 1; + + //implemented as double because int64 is exported as string through grpc-gateway + double score = 2; + + //the full int64 score received from Redis + int64 int_score = 3; + + int32 rank = 4; + int32 previous_rank = 5; + int32 expire_at = 6; + string leaderboardID = 8; + } + repeated Member scores = 2; } message MultiGetRankRequest { - string member_public_id = 1; - string leaderboard_ids = 2; - string order = 3; - bool scoreTTL = 4; + string member_public_id = 1; + string leaderboard_ids = 2; + string order = 3; + bool scoreTTL = 4; } message MultiGetRankResponse { - bool success = 1; - - message Member { - string leaderboardID = 1; - int32 rank = 2; - double score = 3; - int64 int_score = 4; - int32 expire_at = 5; - } - - repeated Member scores = 2; + bool success = 1; + + // Member represents member information retrieved from one the leaderboards during MultiGetRankResponse operation. + message Member { + string leaderboardID = 1; + int32 rank = 2; + double score = 3; + int64 int_score = 4; + int32 expire_at = 5; + } + repeated Member scores = 2; } message GetAroundScoreRequest { - string leaderboard_id = 1; - int64 score = 2; - string order = 3; - int32 page_size = 4; + string leaderboard_id = 1; + int64 score = 2; + string order = 3; + int32 page_size = 4; +} + +message MemberListResponse { + bool success = 1; + repeated MemberResponse members = 2; } \ No newline at end of file diff --git a/prototool.yaml b/prototool.yaml new file mode 100644 index 0000000..276ac13 --- /dev/null +++ b/prototool.yaml @@ -0,0 +1,25 @@ +# prototool configuration. +# See +# https://github.com/uber/prototool/blob/dev/etc/config/example/prototool.yaml +# for reference. + +protoc: + version: 3.8.0 + includes: + - vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/ + + +lint: + group: uber2 + java_package_prefix: 'com.topfreegames.podium' + rules: + remove: + - ENUM_FIELD_PREFIXES_EXCEPT_MESSAGE + - FILE_OPTIONS_EQUAL_GO_PACKAGE_V2_SUFFIX + - FILE_OPTIONS_REQUIRE_PHP_NAMESPACE + - REQUEST_RESPONSE_NAMES_MATCH_RPC + - REQUEST_RESPONSE_TYPES_IN_SAME_FILE + - REQUEST_RESPONSE_TYPES_UNIQUE + - SERVICE_NAMES_API_SUFFIX + - SERVICE_NAMES_MATCH_FILE_NAME + - WKT_DURATION_SUFFIX \ No newline at end of file