Documentation ¶
Index ¶
- Variables
- func RegisterRewardServiceServer(s grpc.ServiceRegistrar, srv RewardServiceServer)
- type GetRewardResponse
- func (*GetRewardResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRewardResponse) GetData() *Reward
- func (x *GetRewardResponse) GetMessage() string
- func (x *GetRewardResponse) GetStatus() bool
- func (*GetRewardResponse) ProtoMessage()
- func (x *GetRewardResponse) ProtoReflect() protoreflect.Message
- func (x *GetRewardResponse) Reset()
- func (x *GetRewardResponse) String() string
- type GetRewardUserRequest
- func (*GetRewardUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRewardUserRequest) GetUserId() string
- func (*GetRewardUserRequest) ProtoMessage()
- func (x *GetRewardUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetRewardUserRequest) Reset()
- func (x *GetRewardUserRequest) String() string
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)deprecated
- func (x *Reward) GetRewardId() string
- func (x *Reward) GetTotalPoint() int64
- func (x *Reward) GetUserId() string
- func (*Reward) ProtoMessage()
- func (x *Reward) ProtoReflect() protoreflect.Message
- func (x *Reward) Reset()
- func (x *Reward) String() string
- type RewardServiceClient
- type RewardServiceServer
- type UnimplementedRewardServiceServer
- type UnsafeRewardServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_protos_reward_proto protoreflect.FileDescriptor
var RewardService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "reward.RewardService", HandlerType: (*RewardServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRewardUser", Handler: _RewardService_GetRewardUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/reward.proto", }
RewardService_ServiceDesc is the grpc.ServiceDesc for RewardService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRewardServiceServer ¶
func RegisterRewardServiceServer(s grpc.ServiceRegistrar, srv RewardServiceServer)
Types ¶
type GetRewardResponse ¶
type GetRewardResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Data *Reward `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GetRewardResponse) Descriptor
deprecated
func (*GetRewardResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRewardResponse.ProtoReflect.Descriptor instead.
func (*GetRewardResponse) GetData ¶
func (x *GetRewardResponse) GetData() *Reward
func (*GetRewardResponse) GetMessage ¶
func (x *GetRewardResponse) GetMessage() string
func (*GetRewardResponse) GetStatus ¶
func (x *GetRewardResponse) GetStatus() bool
func (*GetRewardResponse) ProtoMessage ¶
func (*GetRewardResponse) ProtoMessage()
func (*GetRewardResponse) ProtoReflect ¶
func (x *GetRewardResponse) ProtoReflect() protoreflect.Message
func (*GetRewardResponse) Reset ¶
func (x *GetRewardResponse) Reset()
func (*GetRewardResponse) String ¶
func (x *GetRewardResponse) String() string
type GetRewardUserRequest ¶
type GetRewardUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetRewardUserRequest) Descriptor
deprecated
func (*GetRewardUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRewardUserRequest.ProtoReflect.Descriptor instead.
func (*GetRewardUserRequest) GetUserId ¶
func (x *GetRewardUserRequest) GetUserId() string
func (*GetRewardUserRequest) ProtoMessage ¶
func (*GetRewardUserRequest) ProtoMessage()
func (*GetRewardUserRequest) ProtoReflect ¶
func (x *GetRewardUserRequest) ProtoReflect() protoreflect.Message
func (*GetRewardUserRequest) Reset ¶
func (x *GetRewardUserRequest) Reset()
func (*GetRewardUserRequest) String ¶
func (x *GetRewardUserRequest) String() string
type Reward ¶
type Reward struct { RewardId string `protobuf:"bytes,1,opt,name=rewardId,proto3" json:"rewardId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` TotalPoint int64 `protobuf:"varint,3,opt,name=totalPoint,proto3" json:"totalPoint,omitempty"` // contains filtered or unexported fields }
func (*Reward) Descriptor
deprecated
func (*Reward) GetRewardId ¶
func (*Reward) GetTotalPoint ¶
func (*Reward) ProtoMessage ¶
func (*Reward) ProtoMessage()
func (*Reward) ProtoReflect ¶
func (x *Reward) ProtoReflect() protoreflect.Message
type RewardServiceClient ¶
type RewardServiceClient interface {
GetRewardUser(ctx context.Context, in *GetRewardUserRequest, opts ...grpc.CallOption) (*GetRewardResponse, error)
}
RewardServiceClient is the client API for RewardService 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 NewRewardServiceClient ¶
func NewRewardServiceClient(cc grpc.ClientConnInterface) RewardServiceClient
type RewardServiceServer ¶
type RewardServiceServer interface {
GetRewardUser(context.Context, *GetRewardUserRequest) (*GetRewardResponse, error)
}
RewardServiceServer is the server API for RewardService service. All implementations should embed UnimplementedRewardServiceServer for forward compatibility
type UnimplementedRewardServiceServer ¶
type UnimplementedRewardServiceServer struct { }
UnimplementedRewardServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRewardServiceServer) GetRewardUser ¶
func (UnimplementedRewardServiceServer) GetRewardUser(context.Context, *GetRewardUserRequest) (*GetRewardResponse, error)
type UnsafeRewardServiceServer ¶
type UnsafeRewardServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRewardServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RewardServiceServer will result in compilation errors.