Documentation ¶
Index ¶
- Variables
- func RegisterRewardsServiceServer(s grpc.ServiceRegistrar, srv RewardsServiceServer)
- type GetTotalPointsResponse
- func (*GetTotalPointsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTotalPointsResponse) GetTotalPoints() int64
- func (*GetTotalPointsResponse) ProtoMessage()
- func (x *GetTotalPointsResponse) ProtoReflect() protoreflect.Message
- func (x *GetTotalPointsResponse) Reset()
- func (x *GetTotalPointsResponse) String() string
- type RewardsServiceClient
- type RewardsServiceServer
- type UnimplementedRewardsServiceServer
- type UnsafeRewardsServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_rewards_rewards_proto protoreflect.FileDescriptor
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.
func NewRewardsServiceClient ¶
func NewRewardsServiceClient(cc grpc.ClientConnInterface) RewardsServiceClient
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 ¶
func (UnimplementedRewardsServiceServer) GetTotalPoints(context.Context, *emptypb.Empty) (*GetTotalPointsResponse, error)
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.