Documentation ¶
Overview ¶
Package podium_leaderboard_webhooks_v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterLeaderboardsEnrichmentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLeaderboardsEnrichmentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLeaderboardsEnrichmentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLeaderboardsEnrichmentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLeaderboardsEnrichmentServiceServer(s grpc.ServiceRegistrar, srv LeaderboardsEnrichmentServiceServer)
- type EnrichLeaderboardsRequest
- func (*EnrichLeaderboardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnrichLeaderboardsRequest) GetMembers() []*Member
- func (*EnrichLeaderboardsRequest) ProtoMessage()
- func (x *EnrichLeaderboardsRequest) ProtoReflect() protoreflect.Message
- func (x *EnrichLeaderboardsRequest) Reset()
- func (x *EnrichLeaderboardsRequest) String() string
- type EnrichLeaderboardsResponse
- func (*EnrichLeaderboardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnrichLeaderboardsResponse) GetMembers() []*Member
- func (*EnrichLeaderboardsResponse) ProtoMessage()
- func (x *EnrichLeaderboardsResponse) ProtoReflect() protoreflect.Message
- func (x *EnrichLeaderboardsResponse) Reset()
- func (x *EnrichLeaderboardsResponse) String() string
- type LeaderboardsEnrichmentServiceClient
- type LeaderboardsEnrichmentServiceServer
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetId() string
- func (x *Member) GetLeaderboardId() string
- func (x *Member) GetMetadata() map[string]string
- func (x *Member) GetRank() int32
- func (x *Member) GetScores() []*Score
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- type Score
- type UnimplementedLeaderboardsEnrichmentServiceServer
- type UnsafeLeaderboardsEnrichmentServiceServer
Constants ¶
const (
LeaderboardsEnrichmentService_EnrichLeaderboards_FullMethodName = "/LeaderboardsEnrichmentService/EnrichLeaderboards"
)
Variables ¶
var File_leaderboard_enriching_proto_webhook_v1_podium_webhook_proto protoreflect.FileDescriptor
var LeaderboardsEnrichmentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "LeaderboardsEnrichmentService", HandlerType: (*LeaderboardsEnrichmentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EnrichLeaderboards", Handler: _LeaderboardsEnrichmentService_EnrichLeaderboards_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "leaderboard/enriching/proto/webhook/v1/podium_webhook.proto", }
LeaderboardsEnrichmentService_ServiceDesc is the grpc.ServiceDesc for LeaderboardsEnrichmentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLeaderboardsEnrichmentServiceHandler ¶
func RegisterLeaderboardsEnrichmentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLeaderboardsEnrichmentServiceHandler registers the http handlers for service LeaderboardsEnrichmentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLeaderboardsEnrichmentServiceHandlerClient ¶
func RegisterLeaderboardsEnrichmentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LeaderboardsEnrichmentServiceClient) error
RegisterLeaderboardsEnrichmentServiceHandlerClient registers the http handlers for service LeaderboardsEnrichmentService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LeaderboardsEnrichmentServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LeaderboardsEnrichmentServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LeaderboardsEnrichmentServiceClient" to call the correct interceptors.
func RegisterLeaderboardsEnrichmentServiceHandlerFromEndpoint ¶
func RegisterLeaderboardsEnrichmentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLeaderboardsEnrichmentServiceHandlerFromEndpoint is same as RegisterLeaderboardsEnrichmentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLeaderboardsEnrichmentServiceHandlerServer ¶
func RegisterLeaderboardsEnrichmentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LeaderboardsEnrichmentServiceServer) error
RegisterLeaderboardsEnrichmentServiceHandlerServer registers the http handlers for service LeaderboardsEnrichmentService to "mux". UnaryRPC :call LeaderboardsEnrichmentServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLeaderboardsEnrichmentServiceHandlerFromEndpoint instead.
func RegisterLeaderboardsEnrichmentServiceServer ¶
func RegisterLeaderboardsEnrichmentServiceServer(s grpc.ServiceRegistrar, srv LeaderboardsEnrichmentServiceServer)
Types ¶
type EnrichLeaderboardsRequest ¶
type EnrichLeaderboardsRequest struct { // The members to enrich. Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` // contains filtered or unexported fields }
func (*EnrichLeaderboardsRequest) Descriptor
deprecated
func (*EnrichLeaderboardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnrichLeaderboardsRequest.ProtoReflect.Descriptor instead.
func (*EnrichLeaderboardsRequest) GetMembers ¶
func (x *EnrichLeaderboardsRequest) GetMembers() []*Member
func (*EnrichLeaderboardsRequest) ProtoMessage ¶
func (*EnrichLeaderboardsRequest) ProtoMessage()
func (*EnrichLeaderboardsRequest) ProtoReflect ¶
func (x *EnrichLeaderboardsRequest) ProtoReflect() protoreflect.Message
func (*EnrichLeaderboardsRequest) Reset ¶
func (x *EnrichLeaderboardsRequest) Reset()
func (*EnrichLeaderboardsRequest) String ¶
func (x *EnrichLeaderboardsRequest) String() string
type EnrichLeaderboardsResponse ¶
type EnrichLeaderboardsResponse struct { // The enriched members. Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` // contains filtered or unexported fields }
func (*EnrichLeaderboardsResponse) Descriptor
deprecated
func (*EnrichLeaderboardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnrichLeaderboardsResponse.ProtoReflect.Descriptor instead.
func (*EnrichLeaderboardsResponse) GetMembers ¶
func (x *EnrichLeaderboardsResponse) GetMembers() []*Member
func (*EnrichLeaderboardsResponse) ProtoMessage ¶
func (*EnrichLeaderboardsResponse) ProtoMessage()
func (*EnrichLeaderboardsResponse) ProtoReflect ¶
func (x *EnrichLeaderboardsResponse) ProtoReflect() protoreflect.Message
func (*EnrichLeaderboardsResponse) Reset ¶
func (x *EnrichLeaderboardsResponse) Reset()
func (*EnrichLeaderboardsResponse) String ¶
func (x *EnrichLeaderboardsResponse) String() string
type LeaderboardsEnrichmentServiceClient ¶
type LeaderboardsEnrichmentServiceClient interface { // Receives an array of members and returns the same array enriched with // the member's metadata. EnrichLeaderboards(ctx context.Context, in *EnrichLeaderboardsRequest, opts ...grpc.CallOption) (*EnrichLeaderboardsResponse, error) }
LeaderboardsEnrichmentServiceClient is the client API for LeaderboardsEnrichmentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLeaderboardsEnrichmentServiceClient ¶
func NewLeaderboardsEnrichmentServiceClient(cc grpc.ClientConnInterface) LeaderboardsEnrichmentServiceClient
type LeaderboardsEnrichmentServiceServer ¶
type LeaderboardsEnrichmentServiceServer interface { // Receives an array of members and returns the same array enriched with // the member's metadata. EnrichLeaderboards(context.Context, *EnrichLeaderboardsRequest) (*EnrichLeaderboardsResponse, error) // contains filtered or unexported methods }
LeaderboardsEnrichmentServiceServer is the server API for LeaderboardsEnrichmentService service. All implementations must embed UnimplementedLeaderboardsEnrichmentServiceServer for forward compatibility
type Member ¶
type Member struct { // The leaderboard's ID. LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboardId,proto3" json:"leaderboardId,omitempty"` // The member's ID. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // The member's scores. Scores []*Score `protobuf:"bytes,3,rep,name=scores,proto3" json:"scores,omitempty"` // The member's rank in the leaderboard. Rank int32 `protobuf:"varint,4,opt,name=rank,proto3" json:"rank,omitempty"` // The member's metadata. Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Member) Descriptor
deprecated
func (*Member) GetLeaderboardId ¶
func (*Member) GetMetadata ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
type Score ¶
type Score struct { // The score value. Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Score) Descriptor
deprecated
func (*Score) ProtoMessage ¶
func (*Score) ProtoMessage()
func (*Score) ProtoReflect ¶
func (x *Score) ProtoReflect() protoreflect.Message
type UnimplementedLeaderboardsEnrichmentServiceServer ¶
type UnimplementedLeaderboardsEnrichmentServiceServer struct { }
UnimplementedLeaderboardsEnrichmentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLeaderboardsEnrichmentServiceServer) EnrichLeaderboards ¶
func (UnimplementedLeaderboardsEnrichmentServiceServer) EnrichLeaderboards(context.Context, *EnrichLeaderboardsRequest) (*EnrichLeaderboardsResponse, error)
type UnsafeLeaderboardsEnrichmentServiceServer ¶
type UnsafeLeaderboardsEnrichmentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLeaderboardsEnrichmentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LeaderboardsEnrichmentServiceServer will result in compilation errors.