rewards

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_rewards_rewards_proto protoreflect.FileDescriptor
View Source
var RewardsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "users.RewardsService",
	HandlerType: (*RewardsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTotalPoints",
			Handler:    _RewardsService_GetTotalPoints_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/rewards/rewards.proto",
}

RewardsService_ServiceDesc is the grpc.ServiceDesc for RewardsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRewardsServiceServer

func RegisterRewardsServiceServer(s grpc.ServiceRegistrar, srv RewardsServiceServer)

Types

type GetTotalPointsResponse

type GetTotalPointsResponse struct {
	TotalPoints int64 `protobuf:"varint,1,opt,name=totalPoints,proto3" json:"totalPoints,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTotalPointsResponse) Descriptor deprecated

func (*GetTotalPointsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTotalPointsResponse.ProtoReflect.Descriptor instead.

func (*GetTotalPointsResponse) GetTotalPoints

func (x *GetTotalPointsResponse) GetTotalPoints() int64

func (*GetTotalPointsResponse) ProtoMessage

func (*GetTotalPointsResponse) ProtoMessage()

func (*GetTotalPointsResponse) ProtoReflect

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

func (*GetTotalPointsResponse) Reset

func (x *GetTotalPointsResponse) Reset()

func (*GetTotalPointsResponse) String

func (x *GetTotalPointsResponse) String() string

type RewardsServiceClient

type RewardsServiceClient interface {
	GetTotalPoints(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTotalPointsResponse, error)
}

RewardsServiceClient is the client API for RewardsService 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 RewardsServiceServer

type RewardsServiceServer interface {
	GetTotalPoints(context.Context, *emptypb.Empty) (*GetTotalPointsResponse, error)
	// contains filtered or unexported methods
}

RewardsServiceServer is the server API for RewardsService service. All implementations must embed UnimplementedRewardsServiceServer for forward compatibility

type UnimplementedRewardsServiceServer

type UnimplementedRewardsServiceServer struct {
}

UnimplementedRewardsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRewardsServiceServer) GetTotalPoints

type UnsafeRewardsServiceServer

type UnsafeRewardsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRewardsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RewardsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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