podium_leaderboard_webhooks_v1

package
v2.0.0-...-91315bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package podium_leaderboard_webhooks_v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	LeaderboardsEnrichmentService_EnrichLeaderboards_FullMethodName = "/LeaderboardsEnrichmentService/EnrichLeaderboards"
)

Variables

View Source
var File_leaderboard_enriching_proto_webhook_v1_podium_webhook_proto protoreflect.FileDescriptor
View Source
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 (*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 (*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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetId

func (x *Member) GetId() string

func (*Member) GetLeaderboardId

func (x *Member) GetLeaderboardId() string

func (*Member) GetMetadata

func (x *Member) GetMetadata() map[string]string

func (*Member) GetRank

func (x *Member) GetRank() int32

func (*Member) GetScores

func (x *Member) GetScores() []*Score

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

func (x *Member) ProtoReflect() protoreflect.Message

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Score.ProtoReflect.Descriptor instead.

func (*Score) GetValue

func (x *Score) GetValue() int64

func (*Score) ProtoMessage

func (*Score) ProtoMessage()

func (*Score) ProtoReflect

func (x *Score) ProtoReflect() protoreflect.Message

func (*Score) Reset

func (x *Score) Reset()

func (*Score) String

func (x *Score) String() string

type UnimplementedLeaderboardsEnrichmentServiceServer

type UnimplementedLeaderboardsEnrichmentServiceServer struct {
}

UnimplementedLeaderboardsEnrichmentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLeaderboardsEnrichmentServiceServer) EnrichLeaderboards

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL