Documentation ¶
Index ¶
- Variables
- func RegisterRewardsServiceServer(s grpc.ServiceRegistrar, srv RewardsServiceServer)
- type GetQualifiedDevicesDevice
- func (*GetQualifiedDevicesDevice) Descriptor() ([]byte, []int)deprecated
- func (x *GetQualifiedDevicesDevice) GetId() string
- func (x *GetQualifiedDevicesDevice) GetIntegrationIds() []string
- func (*GetQualifiedDevicesDevice) ProtoMessage()
- func (x *GetQualifiedDevicesDevice) ProtoReflect() protoreflect.Message
- func (x *GetQualifiedDevicesDevice) Reset()
- func (x *GetQualifiedDevicesDevice) String() string
- type GetQualifiedDevicesRequest
- func (*GetQualifiedDevicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetQualifiedDevicesRequest) GetEnd() *timestamppb.Timestamp
- func (x *GetQualifiedDevicesRequest) GetStart() *timestamppb.Timestamp
- func (*GetQualifiedDevicesRequest) ProtoMessage()
- func (x *GetQualifiedDevicesRequest) ProtoReflect() protoreflect.Message
- func (x *GetQualifiedDevicesRequest) Reset()
- func (x *GetQualifiedDevicesRequest) String() string
- 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 RewardsService_GetQualifiedDevicesClient
- type RewardsService_GetQualifiedDevicesServer
- type UnimplementedRewardsServiceServer
- type UnsafeRewardsServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_rewards_rewards_proto protoreflect.FileDescriptor
var RewardsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rewards.RewardsService", HandlerType: (*RewardsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTotalPoints", Handler: _RewardsService_GetTotalPoints_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetQualifiedDevices", Handler: _RewardsService_GetQualifiedDevices_Handler, ServerStreams: true, }, }, 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 GetQualifiedDevicesDevice ¶ added in v0.5.3
type GetQualifiedDevicesDevice struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` IntegrationIds []string `protobuf:"bytes,2,rep,name=integration_ids,json=integrationIds,proto3" json:"integration_ids,omitempty"` // contains filtered or unexported fields }
func (*GetQualifiedDevicesDevice) Descriptor
deprecated
added in
v0.5.3
func (*GetQualifiedDevicesDevice) Descriptor() ([]byte, []int)
Deprecated: Use GetQualifiedDevicesDevice.ProtoReflect.Descriptor instead.
func (*GetQualifiedDevicesDevice) GetId ¶ added in v0.5.3
func (x *GetQualifiedDevicesDevice) GetId() string
func (*GetQualifiedDevicesDevice) GetIntegrationIds ¶ added in v0.5.3
func (x *GetQualifiedDevicesDevice) GetIntegrationIds() []string
func (*GetQualifiedDevicesDevice) ProtoMessage ¶ added in v0.5.3
func (*GetQualifiedDevicesDevice) ProtoMessage()
func (*GetQualifiedDevicesDevice) ProtoReflect ¶ added in v0.5.3
func (x *GetQualifiedDevicesDevice) ProtoReflect() protoreflect.Message
func (*GetQualifiedDevicesDevice) Reset ¶ added in v0.5.3
func (x *GetQualifiedDevicesDevice) Reset()
func (*GetQualifiedDevicesDevice) String ¶ added in v0.5.3
func (x *GetQualifiedDevicesDevice) String() string
type GetQualifiedDevicesRequest ¶ added in v0.5.3
type GetQualifiedDevicesRequest struct { Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*GetQualifiedDevicesRequest) Descriptor
deprecated
added in
v0.5.3
func (*GetQualifiedDevicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetQualifiedDevicesRequest.ProtoReflect.Descriptor instead.
func (*GetQualifiedDevicesRequest) GetEnd ¶ added in v0.5.3
func (x *GetQualifiedDevicesRequest) GetEnd() *timestamppb.Timestamp
func (*GetQualifiedDevicesRequest) GetStart ¶ added in v0.5.3
func (x *GetQualifiedDevicesRequest) GetStart() *timestamppb.Timestamp
func (*GetQualifiedDevicesRequest) ProtoMessage ¶ added in v0.5.3
func (*GetQualifiedDevicesRequest) ProtoMessage()
func (*GetQualifiedDevicesRequest) ProtoReflect ¶ added in v0.5.3
func (x *GetQualifiedDevicesRequest) ProtoReflect() protoreflect.Message
func (*GetQualifiedDevicesRequest) Reset ¶ added in v0.5.3
func (x *GetQualifiedDevicesRequest) Reset()
func (*GetQualifiedDevicesRequest) String ¶ added in v0.5.3
func (x *GetQualifiedDevicesRequest) String() string
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) GetQualifiedDevices(ctx context.Context, in *GetQualifiedDevicesRequest, opts ...grpc.CallOption) (RewardsService_GetQualifiedDevicesClient, 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) GetQualifiedDevices(*GetQualifiedDevicesRequest, RewardsService_GetQualifiedDevicesServer) error // contains filtered or unexported methods }
RewardsServiceServer is the server API for RewardsService service. All implementations must embed UnimplementedRewardsServiceServer for forward compatibility
type RewardsService_GetQualifiedDevicesClient ¶ added in v0.5.4
type RewardsService_GetQualifiedDevicesClient interface { Recv() (*GetQualifiedDevicesDevice, error) grpc.ClientStream }
type RewardsService_GetQualifiedDevicesServer ¶ added in v0.5.4
type RewardsService_GetQualifiedDevicesServer interface { Send(*GetQualifiedDevicesDevice) error grpc.ServerStream }
type UnimplementedRewardsServiceServer ¶
type UnimplementedRewardsServiceServer struct { }
UnimplementedRewardsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRewardsServiceServer) GetQualifiedDevices ¶ added in v0.5.3
func (UnimplementedRewardsServiceServer) GetQualifiedDevices(*GetQualifiedDevicesRequest, RewardsService_GetQualifiedDevicesServer) error
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.