Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCollectionHTTPServer(s *http.Server, srv CollectionHTTPServer)
- func RegisterCollectionServer(s grpc.ServiceRegistrar, srv CollectionServer)
- type CollectionClient
- type CollectionHTTPClient
- type CollectionHTTPClientImpl
- func (c *CollectionHTTPClientImpl) CreateCollectionRecord(ctx context.Context, in *CreateCollectionRecordReq, opts ...http.CallOption) (*Empty, error)
- func (c *CollectionHTTPClientImpl) GetDeviceLastReport(ctx context.Context, in *GetDeviceLastReportReq, opts ...http.CallOption) (*CollectionRecord, error)
- func (c *CollectionHTTPClientImpl) GetLatestIdWithinRange(ctx context.Context, in *GetLatestWithinRangeReq, opts ...http.CallOption) (*GetLatestIdWithinRangeResp, error)
- func (c *CollectionHTTPClientImpl) GetLatestRecordsWithinRange(ctx context.Context, in *GetLatestWithinRangeReq, opts ...http.CallOption) (*GetLatestRecordsWithinRangeResp, error)
- func (c *CollectionHTTPClientImpl) GetPredictQuality(ctx context.Context, in *GetPredictQualityReq, opts ...http.CallOption) (*waterquality.PredictAndGuessResp, error)
- func (c *CollectionHTTPClientImpl) ListCollectionRecord(ctx context.Context, in *ListCollectionRecordReq, opts ...http.CallOption) (*ListCollectionRecordResp, error)
- type CollectionHTTPServer
- type CollectionRecord
- func (*CollectionRecord) Descriptor() ([]byte, []int)deprecated
- func (x *CollectionRecord) GetCreatedAt() int64
- func (x *CollectionRecord) GetData() *waterquality.Quality
- func (x *CollectionRecord) GetDeviceId() uint64
- func (x *CollectionRecord) GetId() uint64
- func (x *CollectionRecord) GetReceivedAt() int64
- func (*CollectionRecord) ProtoMessage()
- func (x *CollectionRecord) ProtoReflect() protoreflect.Message
- func (x *CollectionRecord) Reset()
- func (x *CollectionRecord) String() string
- type CollectionRecordOrder
- func (CollectionRecordOrder) Descriptor() protoreflect.EnumDescriptor
- func (x CollectionRecordOrder) Enum() *CollectionRecordOrder
- func (CollectionRecordOrder) EnumDescriptor() ([]byte, []int)deprecated
- func (x CollectionRecordOrder) Number() protoreflect.EnumNumber
- func (x CollectionRecordOrder) String() string
- func (CollectionRecordOrder) Type() protoreflect.EnumType
- type CollectionServer
- type Collection_GetDeviceStreamEventClient
- type Collection_GetDeviceStreamEventServer
- type Collection_GetDeviceStreamReportClient
- type Collection_GetDeviceStreamReportServer
- type Collection_GetStreamLatestIdWithinRangeClient
- type Collection_GetStreamLatestIdWithinRangeServer
- type Collection_GetStreamLatestRecordsWithinRangeClient
- type Collection_GetStreamLatestRecordsWithinRangeServer
- type CreateCollectionRecordReq
- func (*CreateCollectionRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCollectionRecordReq) GetData() *waterquality.Quality
- func (x *CreateCollectionRecordReq) GetDeviceId() uint64
- func (x *CreateCollectionRecordReq) GetReceivedAt() int64
- func (*CreateCollectionRecordReq) ProtoMessage()
- func (x *CreateCollectionRecordReq) ProtoReflect() protoreflect.Message
- func (x *CreateCollectionRecordReq) Reset()
- func (x *CreateCollectionRecordReq) String() string
- type Empty
- type GetDeviceLastReportReq
- func (*GetDeviceLastReportReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceLastReportReq) GetId() uint64
- func (*GetDeviceLastReportReq) ProtoMessage()
- func (x *GetDeviceLastReportReq) ProtoReflect() protoreflect.Message
- func (x *GetDeviceLastReportReq) Reset()
- func (x *GetDeviceLastReportReq) String() string
- type GetDeviceStreamEventReq
- func (*GetDeviceStreamEventReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceStreamEventReq) GetEventFilter() string
- func (x *GetDeviceStreamEventReq) GetId() uint64
- func (*GetDeviceStreamEventReq) ProtoMessage()
- func (x *GetDeviceStreamEventReq) ProtoReflect() protoreflect.Message
- func (x *GetDeviceStreamEventReq) Reset()
- func (x *GetDeviceStreamEventReq) String() string
- type GetDeviceStreamEventResp
- func (*GetDeviceStreamEventResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceStreamEventResp) GetMessage() string
- func (x *GetDeviceStreamEventResp) GetTimestamp() int64
- func (x *GetDeviceStreamEventResp) GetTopic() string
- func (*GetDeviceStreamEventResp) ProtoMessage()
- func (x *GetDeviceStreamEventResp) ProtoReflect() protoreflect.Message
- func (x *GetDeviceStreamEventResp) Reset()
- func (x *GetDeviceStreamEventResp) String() string
- type GetDeviceStreamReportReq
- func (*GetDeviceStreamReportReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceStreamReportReq) GetId() uint64
- func (*GetDeviceStreamReportReq) ProtoMessage()
- func (x *GetDeviceStreamReportReq) ProtoReflect() protoreflect.Message
- func (x *GetDeviceStreamReportReq) Reset()
- func (x *GetDeviceStreamReportReq) String() string
- type GetLatestIdWithinRangeResp
- func (*GetLatestIdWithinRangeResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestIdWithinRangeResp) GetIds() []uint64
- func (*GetLatestIdWithinRangeResp) ProtoMessage()
- func (x *GetLatestIdWithinRangeResp) ProtoReflect() protoreflect.Message
- func (x *GetLatestIdWithinRangeResp) Reset()
- func (x *GetLatestIdWithinRangeResp) String() string
- type GetLatestRecordsAndGuess
- func (*GetLatestRecordsAndGuess) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestRecordsAndGuess) GetGuess() *waterquality.PredictAndGuessResp
- func (x *GetLatestRecordsAndGuess) GetLevel() int64
- func (x *GetLatestRecordsAndGuess) GetRecord() *CollectionRecord
- func (*GetLatestRecordsAndGuess) ProtoMessage()
- func (x *GetLatestRecordsAndGuess) ProtoReflect() protoreflect.Message
- func (x *GetLatestRecordsAndGuess) Reset()
- func (x *GetLatestRecordsAndGuess) String() string
- type GetLatestRecordsWithinRangeResp
- func (*GetLatestRecordsWithinRangeResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestRecordsWithinRangeResp) GetRecords() []*GetLatestRecordsAndGuess
- func (*GetLatestRecordsWithinRangeResp) ProtoMessage()
- func (x *GetLatestRecordsWithinRangeResp) ProtoReflect() protoreflect.Message
- func (x *GetLatestRecordsWithinRangeResp) Reset()
- func (x *GetLatestRecordsWithinRangeResp) String() string
- type GetLatestWithinRangeReq
- func (*GetLatestWithinRangeReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestWithinRangeReq) GetCenterLat() float64
- func (x *GetLatestWithinRangeReq) GetCenterLng() float64
- func (x *GetLatestWithinRangeReq) GetRadiusMeters() float64
- func (*GetLatestWithinRangeReq) ProtoMessage()
- func (x *GetLatestWithinRangeReq) ProtoReflect() protoreflect.Message
- func (x *GetLatestWithinRangeReq) Reset()
- func (x *GetLatestWithinRangeReq) String() string
- type GetPredictQualityReq
- func (*GetPredictQualityReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetPredictQualityReq) GetDeviceId() uint64
- func (*GetPredictQualityReq) ProtoMessage()
- func (x *GetPredictQualityReq) ProtoReflect() protoreflect.Message
- func (x *GetPredictQualityReq) Reset()
- func (x *GetPredictQualityReq) String() string
- type GetStreamLatestIdWithinRangeResp
- func (*GetStreamLatestIdWithinRangeResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetStreamLatestIdWithinRangeResp) GetIds() []uint64
- func (x *GetStreamLatestIdWithinRangeResp) GetType() GetStreamLatestWithinRangeRespType
- func (*GetStreamLatestIdWithinRangeResp) ProtoMessage()
- func (x *GetStreamLatestIdWithinRangeResp) ProtoReflect() protoreflect.Message
- func (x *GetStreamLatestIdWithinRangeResp) Reset()
- func (x *GetStreamLatestIdWithinRangeResp) String() string
- type GetStreamLatestRecordsWithinRangeResp
- func (*GetStreamLatestRecordsWithinRangeResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetStreamLatestRecordsWithinRangeResp) GetIds() []uint64
- func (x *GetStreamLatestRecordsWithinRangeResp) GetRecords() []*GetLatestRecordsAndGuess
- func (x *GetStreamLatestRecordsWithinRangeResp) GetType() GetStreamLatestWithinRangeRespType
- func (*GetStreamLatestRecordsWithinRangeResp) ProtoMessage()
- func (x *GetStreamLatestRecordsWithinRangeResp) ProtoReflect() protoreflect.Message
- func (x *GetStreamLatestRecordsWithinRangeResp) Reset()
- func (x *GetStreamLatestRecordsWithinRangeResp) String() string
- type GetStreamLatestWithinRangeReq
- func (*GetStreamLatestWithinRangeReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetStreamLatestWithinRangeReq) GetCenterLat() float64
- func (x *GetStreamLatestWithinRangeReq) GetCenterLng() float64
- func (x *GetStreamLatestWithinRangeReq) GetInterval() uint32
- func (x *GetStreamLatestWithinRangeReq) GetRadiusMeters() float64
- func (*GetStreamLatestWithinRangeReq) ProtoMessage()
- func (x *GetStreamLatestWithinRangeReq) ProtoReflect() protoreflect.Message
- func (x *GetStreamLatestWithinRangeReq) Reset()
- func (x *GetStreamLatestWithinRangeReq) String() string
- type GetStreamLatestWithinRangeRespType
- func (GetStreamLatestWithinRangeRespType) Descriptor() protoreflect.EnumDescriptor
- func (x GetStreamLatestWithinRangeRespType) Enum() *GetStreamLatestWithinRangeRespType
- func (GetStreamLatestWithinRangeRespType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetStreamLatestWithinRangeRespType) Number() protoreflect.EnumNumber
- func (x GetStreamLatestWithinRangeRespType) String() string
- func (GetStreamLatestWithinRangeRespType) Type() protoreflect.EnumType
- type ListCollectionRecordReq
- func (*ListCollectionRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionRecordReq) GetAfter() int64
- func (x *ListCollectionRecordReq) GetBefore() int64
- func (x *ListCollectionRecordReq) GetDeviceId() uint64
- func (x *ListCollectionRecordReq) GetOrder() CollectionRecordOrder
- func (x *ListCollectionRecordReq) GetPage() uint64
- func (x *ListCollectionRecordReq) GetSize() uint64
- func (x *ListCollectionRecordReq) GetSort() Sort
- func (*ListCollectionRecordReq) ProtoMessage()
- func (x *ListCollectionRecordReq) ProtoReflect() protoreflect.Message
- func (x *ListCollectionRecordReq) Reset()
- func (x *ListCollectionRecordReq) String() string
- type ListCollectionRecordResp
- func (*ListCollectionRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionRecordResp) GetRecords() []*GetLatestRecordsAndGuess
- func (x *ListCollectionRecordResp) GetTotal() int64
- func (*ListCollectionRecordResp) ProtoMessage()
- func (x *ListCollectionRecordResp) ProtoReflect() protoreflect.Message
- func (x *ListCollectionRecordResp) Reset()
- func (x *ListCollectionRecordResp) String() string
- type Sort
- type UnimplementedCollectionServer
- func (UnimplementedCollectionServer) CreateCollectionRecord(context.Context, *CreateCollectionRecordReq) (*Empty, error)
- func (UnimplementedCollectionServer) GetDeviceLastReport(context.Context, *GetDeviceLastReportReq) (*CollectionRecord, error)
- func (UnimplementedCollectionServer) GetDeviceStreamEvent(*GetDeviceStreamEventReq, grpc.ServerStreamingServer[GetDeviceStreamEventResp]) error
- func (UnimplementedCollectionServer) GetDeviceStreamReport(*GetDeviceStreamReportReq, ...) error
- func (UnimplementedCollectionServer) GetLatestIdWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestIdWithinRangeResp, error)
- func (UnimplementedCollectionServer) GetLatestRecordsWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestRecordsWithinRangeResp, error)
- func (UnimplementedCollectionServer) GetPredictQuality(context.Context, *GetPredictQualityReq) (*waterquality.PredictAndGuessResp, error)
- func (UnimplementedCollectionServer) GetStreamLatestIdWithinRange(*GetStreamLatestWithinRangeReq, ...) error
- func (UnimplementedCollectionServer) GetStreamLatestRecordsWithinRange(*GetStreamLatestWithinRangeReq, ...) error
- func (UnimplementedCollectionServer) ListCollectionRecord(context.Context, *ListCollectionRecordReq) (*ListCollectionRecordResp, error)
- type UnsafeCollectionServer
Constants ¶
const ( Collection_CreateCollectionRecord_FullMethodName = "/api.collection.Collection/CreateCollectionRecord" Collection_ListCollectionRecord_FullMethodName = "/api.collection.Collection/ListCollectionRecord" Collection_GetPredictQuality_FullMethodName = "/api.collection.Collection/GetPredictQuality" Collection_GetDeviceStreamReport_FullMethodName = "/api.collection.Collection/GetDeviceStreamReport" Collection_GetDeviceStreamEvent_FullMethodName = "/api.collection.Collection/GetDeviceStreamEvent" Collection_GetDeviceLastReport_FullMethodName = "/api.collection.Collection/GetDeviceLastReport" Collection_GetLatestRecordsWithinRange_FullMethodName = "/api.collection.Collection/GetLatestRecordsWithinRange" Collection_GetLatestIdWithinRange_FullMethodName = "/api.collection.Collection/GetLatestIdWithinRange" Collection_GetStreamLatestRecordsWithinRange_FullMethodName = "/api.collection.Collection/GetStreamLatestRecordsWithinRange" Collection_GetStreamLatestIdWithinRange_FullMethodName = "/api.collection.Collection/GetStreamLatestIdWithinRange" )
const OperationCollectionCreateCollectionRecord = "/api.collection.Collection/CreateCollectionRecord"
const OperationCollectionGetDeviceLastReport = "/api.collection.Collection/GetDeviceLastReport"
const OperationCollectionGetLatestIdWithinRange = "/api.collection.Collection/GetLatestIdWithinRange"
const OperationCollectionGetLatestRecordsWithinRange = "/api.collection.Collection/GetLatestRecordsWithinRange"
const OperationCollectionGetPredictQuality = "/api.collection.Collection/GetPredictQuality"
const OperationCollectionListCollectionRecord = "/api.collection.Collection/ListCollectionRecord"
Variables ¶
var ( CollectionRecordOrder_name = map[int32]string{ 0: "TIMESTAMP", 1: "CREATED_AT", } CollectionRecordOrder_value = map[string]int32{ "TIMESTAMP": 0, "CREATED_AT": 1, } )
Enum value maps for CollectionRecordOrder.
var ( Sort_name = map[int32]string{ 0: "DESC", 1: "ASC", } Sort_value = map[string]int32{ "DESC": 0, "ASC": 1, } )
Enum value maps for Sort.
var ( GetStreamLatestWithinRangeRespType_name = map[int32]string{ 0: "ADD", 1: "REMOVE", } GetStreamLatestWithinRangeRespType_value = map[string]int32{ "ADD": 0, "REMOVE": 1, } )
Enum value maps for GetStreamLatestWithinRangeRespType.
var Collection_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.collection.Collection", HandlerType: (*CollectionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCollectionRecord", Handler: _Collection_CreateCollectionRecord_Handler, }, { MethodName: "ListCollectionRecord", Handler: _Collection_ListCollectionRecord_Handler, }, { MethodName: "GetPredictQuality", Handler: _Collection_GetPredictQuality_Handler, }, { MethodName: "GetDeviceLastReport", Handler: _Collection_GetDeviceLastReport_Handler, }, { MethodName: "GetLatestRecordsWithinRange", Handler: _Collection_GetLatestRecordsWithinRange_Handler, }, { MethodName: "GetLatestIdWithinRange", Handler: _Collection_GetLatestIdWithinRange_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDeviceStreamReport", Handler: _Collection_GetDeviceStreamReport_Handler, ServerStreams: true, }, { StreamName: "GetDeviceStreamEvent", Handler: _Collection_GetDeviceStreamEvent_Handler, ServerStreams: true, }, { StreamName: "GetStreamLatestRecordsWithinRange", Handler: _Collection_GetStreamLatestRecordsWithinRange_Handler, ServerStreams: true, }, { StreamName: "GetStreamLatestIdWithinRange", Handler: _Collection_GetStreamLatestIdWithinRange_Handler, ServerStreams: true, }, }, Metadata: "collection/collection.proto", }
Collection_ServiceDesc is the grpc.ServiceDesc for Collection service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_collection_collection_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCollectionHTTPServer ¶
func RegisterCollectionHTTPServer(s *http.Server, srv CollectionHTTPServer)
func RegisterCollectionServer ¶
func RegisterCollectionServer(s grpc.ServiceRegistrar, srv CollectionServer)
Types ¶
type CollectionClient ¶
type CollectionClient interface { CreateCollectionRecord(ctx context.Context, in *CreateCollectionRecordReq, opts ...grpc.CallOption) (*Empty, error) ListCollectionRecord(ctx context.Context, in *ListCollectionRecordReq, opts ...grpc.CallOption) (*ListCollectionRecordResp, error) GetPredictQuality(ctx context.Context, in *GetPredictQualityReq, opts ...grpc.CallOption) (*waterquality.PredictAndGuessResp, error) GetDeviceStreamReport(ctx context.Context, in *GetDeviceStreamReportReq, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CreateCollectionRecordReq], error) GetDeviceStreamEvent(ctx context.Context, in *GetDeviceStreamEventReq, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDeviceStreamEventResp], error) GetDeviceLastReport(ctx context.Context, in *GetDeviceLastReportReq, opts ...grpc.CallOption) (*CollectionRecord, error) GetLatestRecordsWithinRange(ctx context.Context, in *GetLatestWithinRangeReq, opts ...grpc.CallOption) (*GetLatestRecordsWithinRangeResp, error) GetLatestIdWithinRange(ctx context.Context, in *GetLatestWithinRangeReq, opts ...grpc.CallOption) (*GetLatestIdWithinRangeResp, error) GetStreamLatestRecordsWithinRange(ctx context.Context, in *GetStreamLatestWithinRangeReq, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetStreamLatestRecordsWithinRangeResp], error) GetStreamLatestIdWithinRange(ctx context.Context, in *GetStreamLatestWithinRangeReq, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetStreamLatestIdWithinRangeResp], error) }
CollectionClient is the client API for Collection 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 NewCollectionClient ¶
func NewCollectionClient(cc grpc.ClientConnInterface) CollectionClient
type CollectionHTTPClient ¶
type CollectionHTTPClient interface { CreateCollectionRecord(ctx context.Context, req *CreateCollectionRecordReq, opts ...http.CallOption) (rsp *Empty, err error) GetDeviceLastReport(ctx context.Context, req *GetDeviceLastReportReq, opts ...http.CallOption) (rsp *CollectionRecord, err error) GetLatestIdWithinRange(ctx context.Context, req *GetLatestWithinRangeReq, opts ...http.CallOption) (rsp *GetLatestIdWithinRangeResp, err error) GetLatestRecordsWithinRange(ctx context.Context, req *GetLatestWithinRangeReq, opts ...http.CallOption) (rsp *GetLatestRecordsWithinRangeResp, err error) GetPredictQuality(ctx context.Context, req *GetPredictQualityReq, opts ...http.CallOption) (rsp *waterquality.PredictAndGuessResp, err error) ListCollectionRecord(ctx context.Context, req *ListCollectionRecordReq, opts ...http.CallOption) (rsp *ListCollectionRecordResp, err error) }
func NewCollectionHTTPClient ¶
func NewCollectionHTTPClient(client *http.Client) CollectionHTTPClient
type CollectionHTTPClientImpl ¶
type CollectionHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CollectionHTTPClientImpl) CreateCollectionRecord ¶
func (c *CollectionHTTPClientImpl) CreateCollectionRecord(ctx context.Context, in *CreateCollectionRecordReq, opts ...http.CallOption) (*Empty, error)
func (*CollectionHTTPClientImpl) GetDeviceLastReport ¶ added in v0.3.3
func (c *CollectionHTTPClientImpl) GetDeviceLastReport(ctx context.Context, in *GetDeviceLastReportReq, opts ...http.CallOption) (*CollectionRecord, error)
func (*CollectionHTTPClientImpl) GetLatestIdWithinRange ¶ added in v0.4.2
func (c *CollectionHTTPClientImpl) GetLatestIdWithinRange(ctx context.Context, in *GetLatestWithinRangeReq, opts ...http.CallOption) (*GetLatestIdWithinRangeResp, error)
func (*CollectionHTTPClientImpl) GetLatestRecordsWithinRange ¶ added in v0.4.2
func (c *CollectionHTTPClientImpl) GetLatestRecordsWithinRange(ctx context.Context, in *GetLatestWithinRangeReq, opts ...http.CallOption) (*GetLatestRecordsWithinRangeResp, error)
func (*CollectionHTTPClientImpl) GetPredictQuality ¶ added in v0.3.3
func (c *CollectionHTTPClientImpl) GetPredictQuality(ctx context.Context, in *GetPredictQualityReq, opts ...http.CallOption) (*waterquality.PredictAndGuessResp, error)
func (*CollectionHTTPClientImpl) ListCollectionRecord ¶
func (c *CollectionHTTPClientImpl) ListCollectionRecord(ctx context.Context, in *ListCollectionRecordReq, opts ...http.CallOption) (*ListCollectionRecordResp, error)
type CollectionHTTPServer ¶
type CollectionHTTPServer interface { CreateCollectionRecord(context.Context, *CreateCollectionRecordReq) (*Empty, error) GetDeviceLastReport(context.Context, *GetDeviceLastReportReq) (*CollectionRecord, error) GetLatestIdWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestIdWithinRangeResp, error) GetLatestRecordsWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestRecordsWithinRangeResp, error) GetPredictQuality(context.Context, *GetPredictQualityReq) (*waterquality.PredictAndGuessResp, error) ListCollectionRecord(context.Context, *ListCollectionRecordReq) (*ListCollectionRecordResp, error) }
type CollectionRecord ¶
type CollectionRecord struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` DeviceId uint64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"deviceId"` // @gotags: json:"deviceId" CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"createdAt"` // @gotags: json:"createdAt" ReceivedAt int64 `protobuf:"varint,4,opt,name=received_at,json=receivedAt,proto3" json:"receivedAt"` // @gotags: json:"receivedAt" Data *waterquality.Quality `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CollectionRecord) Descriptor
deprecated
func (*CollectionRecord) Descriptor() ([]byte, []int)
Deprecated: Use CollectionRecord.ProtoReflect.Descriptor instead.
func (*CollectionRecord) GetCreatedAt ¶ added in v0.2.2
func (x *CollectionRecord) GetCreatedAt() int64
func (*CollectionRecord) GetData ¶ added in v0.2.3
func (x *CollectionRecord) GetData() *waterquality.Quality
func (*CollectionRecord) GetDeviceId ¶
func (x *CollectionRecord) GetDeviceId() uint64
func (*CollectionRecord) GetId ¶ added in v0.2.2
func (x *CollectionRecord) GetId() uint64
func (*CollectionRecord) GetReceivedAt ¶ added in v0.3.3
func (x *CollectionRecord) GetReceivedAt() int64
func (*CollectionRecord) ProtoMessage ¶
func (*CollectionRecord) ProtoMessage()
func (*CollectionRecord) ProtoReflect ¶
func (x *CollectionRecord) ProtoReflect() protoreflect.Message
func (*CollectionRecord) Reset ¶
func (x *CollectionRecord) Reset()
func (*CollectionRecord) String ¶
func (x *CollectionRecord) String() string
type CollectionRecordOrder ¶ added in v0.2.2
type CollectionRecordOrder int32
const ( CollectionRecordOrder_TIMESTAMP CollectionRecordOrder = 0 CollectionRecordOrder_CREATED_AT CollectionRecordOrder = 1 )
func (CollectionRecordOrder) Descriptor ¶ added in v0.2.2
func (CollectionRecordOrder) Descriptor() protoreflect.EnumDescriptor
func (CollectionRecordOrder) Enum ¶ added in v0.2.2
func (x CollectionRecordOrder) Enum() *CollectionRecordOrder
func (CollectionRecordOrder) EnumDescriptor
deprecated
added in
v0.2.2
func (CollectionRecordOrder) EnumDescriptor() ([]byte, []int)
Deprecated: Use CollectionRecordOrder.Descriptor instead.
func (CollectionRecordOrder) Number ¶ added in v0.2.2
func (x CollectionRecordOrder) Number() protoreflect.EnumNumber
func (CollectionRecordOrder) String ¶ added in v0.2.2
func (x CollectionRecordOrder) String() string
func (CollectionRecordOrder) Type ¶ added in v0.2.2
func (CollectionRecordOrder) Type() protoreflect.EnumType
type CollectionServer ¶
type CollectionServer interface { CreateCollectionRecord(context.Context, *CreateCollectionRecordReq) (*Empty, error) ListCollectionRecord(context.Context, *ListCollectionRecordReq) (*ListCollectionRecordResp, error) GetPredictQuality(context.Context, *GetPredictQualityReq) (*waterquality.PredictAndGuessResp, error) GetDeviceStreamReport(*GetDeviceStreamReportReq, grpc.ServerStreamingServer[CreateCollectionRecordReq]) error GetDeviceStreamEvent(*GetDeviceStreamEventReq, grpc.ServerStreamingServer[GetDeviceStreamEventResp]) error GetDeviceLastReport(context.Context, *GetDeviceLastReportReq) (*CollectionRecord, error) GetLatestRecordsWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestRecordsWithinRangeResp, error) GetLatestIdWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestIdWithinRangeResp, error) GetStreamLatestRecordsWithinRange(*GetStreamLatestWithinRangeReq, grpc.ServerStreamingServer[GetStreamLatestRecordsWithinRangeResp]) error GetStreamLatestIdWithinRange(*GetStreamLatestWithinRangeReq, grpc.ServerStreamingServer[GetStreamLatestIdWithinRangeResp]) error // contains filtered or unexported methods }
CollectionServer is the server API for Collection service. All implementations must embed UnimplementedCollectionServer for forward compatibility.
type Collection_GetDeviceStreamEventClient ¶ added in v0.2.4
type Collection_GetDeviceStreamEventClient = grpc.ServerStreamingClient[GetDeviceStreamEventResp]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetDeviceStreamEventServer ¶ added in v0.2.4
type Collection_GetDeviceStreamEventServer = grpc.ServerStreamingServer[GetDeviceStreamEventResp]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetDeviceStreamReportClient ¶ added in v0.2.4
type Collection_GetDeviceStreamReportClient = grpc.ServerStreamingClient[CreateCollectionRecordReq]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetDeviceStreamReportServer ¶ added in v0.2.4
type Collection_GetDeviceStreamReportServer = grpc.ServerStreamingServer[CreateCollectionRecordReq]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetStreamLatestIdWithinRangeClient ¶ added in v0.4.2
type Collection_GetStreamLatestIdWithinRangeClient = grpc.ServerStreamingClient[GetStreamLatestIdWithinRangeResp]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetStreamLatestIdWithinRangeServer ¶ added in v0.4.2
type Collection_GetStreamLatestIdWithinRangeServer = grpc.ServerStreamingServer[GetStreamLatestIdWithinRangeResp]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetStreamLatestRecordsWithinRangeClient ¶ added in v0.4.2
type Collection_GetStreamLatestRecordsWithinRangeClient = grpc.ServerStreamingClient[GetStreamLatestRecordsWithinRangeResp]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Collection_GetStreamLatestRecordsWithinRangeServer ¶ added in v0.4.2
type Collection_GetStreamLatestRecordsWithinRangeServer = grpc.ServerStreamingServer[GetStreamLatestRecordsWithinRangeResp]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CreateCollectionRecordReq ¶ added in v0.3.3
type CreateCollectionRecordReq struct { DeviceId uint64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"deviceId" form:"deviceId"` // @gotags: form:"deviceId" json:"deviceId" Data *waterquality.Quality `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` ReceivedAt int64 `protobuf:"varint,3,opt,name=received_at,json=receivedAt,proto3" json:"receivedAt" form:"receivedAt"` // @gotags: form:"receivedAt" json:"receivedAt" // contains filtered or unexported fields }
func (*CreateCollectionRecordReq) Descriptor
deprecated
added in
v0.3.3
func (*CreateCollectionRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateCollectionRecordReq.ProtoReflect.Descriptor instead.
func (*CreateCollectionRecordReq) GetData ¶ added in v0.3.3
func (x *CreateCollectionRecordReq) GetData() *waterquality.Quality
func (*CreateCollectionRecordReq) GetDeviceId ¶ added in v0.3.3
func (x *CreateCollectionRecordReq) GetDeviceId() uint64
func (*CreateCollectionRecordReq) GetReceivedAt ¶ added in v0.3.3
func (x *CreateCollectionRecordReq) GetReceivedAt() int64
func (*CreateCollectionRecordReq) ProtoMessage ¶ added in v0.3.3
func (*CreateCollectionRecordReq) ProtoMessage()
func (*CreateCollectionRecordReq) ProtoReflect ¶ added in v0.3.3
func (x *CreateCollectionRecordReq) ProtoReflect() protoreflect.Message
func (*CreateCollectionRecordReq) Reset ¶ added in v0.3.3
func (x *CreateCollectionRecordReq) Reset()
func (*CreateCollectionRecordReq) String ¶ added in v0.3.3
func (x *CreateCollectionRecordReq) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetDeviceLastReportReq ¶ added in v0.3.3
type GetDeviceLastReportReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceLastReportReq) Descriptor
deprecated
added in
v0.3.3
func (*GetDeviceLastReportReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceLastReportReq.ProtoReflect.Descriptor instead.
func (*GetDeviceLastReportReq) GetId ¶ added in v0.3.3
func (x *GetDeviceLastReportReq) GetId() uint64
func (*GetDeviceLastReportReq) ProtoMessage ¶ added in v0.3.3
func (*GetDeviceLastReportReq) ProtoMessage()
func (*GetDeviceLastReportReq) ProtoReflect ¶ added in v0.3.3
func (x *GetDeviceLastReportReq) ProtoReflect() protoreflect.Message
func (*GetDeviceLastReportReq) Reset ¶ added in v0.3.3
func (x *GetDeviceLastReportReq) Reset()
func (*GetDeviceLastReportReq) String ¶ added in v0.3.3
func (x *GetDeviceLastReportReq) String() string
type GetDeviceStreamEventReq ¶ added in v0.2.4
type GetDeviceStreamEventReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id"` // @gotags: form:"id" EventFilter string `protobuf:"bytes,2,opt,name=event_filter,json=eventFilter,proto3" json:"eventFilter" form:"eventFilter"` // @gotags: form:"eventFilter" json:"eventFilter" // contains filtered or unexported fields }
func (*GetDeviceStreamEventReq) Descriptor
deprecated
added in
v0.2.4
func (*GetDeviceStreamEventReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceStreamEventReq.ProtoReflect.Descriptor instead.
func (*GetDeviceStreamEventReq) GetEventFilter ¶ added in v0.2.4
func (x *GetDeviceStreamEventReq) GetEventFilter() string
func (*GetDeviceStreamEventReq) GetId ¶ added in v0.2.4
func (x *GetDeviceStreamEventReq) GetId() uint64
func (*GetDeviceStreamEventReq) ProtoMessage ¶ added in v0.2.4
func (*GetDeviceStreamEventReq) ProtoMessage()
func (*GetDeviceStreamEventReq) ProtoReflect ¶ added in v0.2.4
func (x *GetDeviceStreamEventReq) ProtoReflect() protoreflect.Message
func (*GetDeviceStreamEventReq) Reset ¶ added in v0.2.4
func (x *GetDeviceStreamEventReq) Reset()
func (*GetDeviceStreamEventReq) String ¶ added in v0.2.4
func (x *GetDeviceStreamEventReq) String() string
type GetDeviceStreamEventResp ¶ added in v0.2.4
type GetDeviceStreamEventResp struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic"` // @gotags: json:"topic" Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message"` // @gotags: json:"message" Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp"` // @gotags: json:"timestamp" // contains filtered or unexported fields }
func (*GetDeviceStreamEventResp) Descriptor
deprecated
added in
v0.2.4
func (*GetDeviceStreamEventResp) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceStreamEventResp.ProtoReflect.Descriptor instead.
func (*GetDeviceStreamEventResp) GetMessage ¶ added in v0.2.4
func (x *GetDeviceStreamEventResp) GetMessage() string
func (*GetDeviceStreamEventResp) GetTimestamp ¶ added in v0.2.4
func (x *GetDeviceStreamEventResp) GetTimestamp() int64
func (*GetDeviceStreamEventResp) GetTopic ¶ added in v0.2.4
func (x *GetDeviceStreamEventResp) GetTopic() string
func (*GetDeviceStreamEventResp) ProtoMessage ¶ added in v0.2.4
func (*GetDeviceStreamEventResp) ProtoMessage()
func (*GetDeviceStreamEventResp) ProtoReflect ¶ added in v0.2.4
func (x *GetDeviceStreamEventResp) ProtoReflect() protoreflect.Message
func (*GetDeviceStreamEventResp) Reset ¶ added in v0.2.4
func (x *GetDeviceStreamEventResp) Reset()
func (*GetDeviceStreamEventResp) String ¶ added in v0.2.4
func (x *GetDeviceStreamEventResp) String() string
type GetDeviceStreamReportReq ¶ added in v0.2.4
type GetDeviceStreamReportReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id"` // @gotags: form:"id" // contains filtered or unexported fields }
func (*GetDeviceStreamReportReq) Descriptor
deprecated
added in
v0.2.4
func (*GetDeviceStreamReportReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceStreamReportReq.ProtoReflect.Descriptor instead.
func (*GetDeviceStreamReportReq) GetId ¶ added in v0.2.4
func (x *GetDeviceStreamReportReq) GetId() uint64
func (*GetDeviceStreamReportReq) ProtoMessage ¶ added in v0.2.4
func (*GetDeviceStreamReportReq) ProtoMessage()
func (*GetDeviceStreamReportReq) ProtoReflect ¶ added in v0.2.4
func (x *GetDeviceStreamReportReq) ProtoReflect() protoreflect.Message
func (*GetDeviceStreamReportReq) Reset ¶ added in v0.2.4
func (x *GetDeviceStreamReportReq) Reset()
func (*GetDeviceStreamReportReq) String ¶ added in v0.2.4
func (x *GetDeviceStreamReportReq) String() string
type GetLatestIdWithinRangeResp ¶ added in v0.4.2
type GetLatestIdWithinRangeResp struct { Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetLatestIdWithinRangeResp) Descriptor
deprecated
added in
v0.4.2
func (*GetLatestIdWithinRangeResp) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestIdWithinRangeResp.ProtoReflect.Descriptor instead.
func (*GetLatestIdWithinRangeResp) GetIds ¶ added in v0.4.2
func (x *GetLatestIdWithinRangeResp) GetIds() []uint64
func (*GetLatestIdWithinRangeResp) ProtoMessage ¶ added in v0.4.2
func (*GetLatestIdWithinRangeResp) ProtoMessage()
func (*GetLatestIdWithinRangeResp) ProtoReflect ¶ added in v0.4.2
func (x *GetLatestIdWithinRangeResp) ProtoReflect() protoreflect.Message
func (*GetLatestIdWithinRangeResp) Reset ¶ added in v0.4.2
func (x *GetLatestIdWithinRangeResp) Reset()
func (*GetLatestIdWithinRangeResp) String ¶ added in v0.4.2
func (x *GetLatestIdWithinRangeResp) String() string
type GetLatestRecordsAndGuess ¶ added in v0.4.4
type GetLatestRecordsAndGuess struct { Record *CollectionRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` Guess *waterquality.PredictAndGuessResp `protobuf:"bytes,2,opt,name=guess,proto3" json:"guess,omitempty"` Level int64 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
func (*GetLatestRecordsAndGuess) Descriptor
deprecated
added in
v0.4.4
func (*GetLatestRecordsAndGuess) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestRecordsAndGuess.ProtoReflect.Descriptor instead.
func (*GetLatestRecordsAndGuess) GetGuess ¶ added in v0.4.4
func (x *GetLatestRecordsAndGuess) GetGuess() *waterquality.PredictAndGuessResp
func (*GetLatestRecordsAndGuess) GetLevel ¶ added in v0.4.8
func (x *GetLatestRecordsAndGuess) GetLevel() int64
func (*GetLatestRecordsAndGuess) GetRecord ¶ added in v0.4.4
func (x *GetLatestRecordsAndGuess) GetRecord() *CollectionRecord
func (*GetLatestRecordsAndGuess) ProtoMessage ¶ added in v0.4.4
func (*GetLatestRecordsAndGuess) ProtoMessage()
func (*GetLatestRecordsAndGuess) ProtoReflect ¶ added in v0.4.4
func (x *GetLatestRecordsAndGuess) ProtoReflect() protoreflect.Message
func (*GetLatestRecordsAndGuess) Reset ¶ added in v0.4.4
func (x *GetLatestRecordsAndGuess) Reset()
func (*GetLatestRecordsAndGuess) String ¶ added in v0.4.4
func (x *GetLatestRecordsAndGuess) String() string
type GetLatestRecordsWithinRangeResp ¶ added in v0.4.2
type GetLatestRecordsWithinRangeResp struct { Records []*GetLatestRecordsAndGuess `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
func (*GetLatestRecordsWithinRangeResp) Descriptor
deprecated
added in
v0.4.2
func (*GetLatestRecordsWithinRangeResp) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestRecordsWithinRangeResp.ProtoReflect.Descriptor instead.
func (*GetLatestRecordsWithinRangeResp) GetRecords ¶ added in v0.4.2
func (x *GetLatestRecordsWithinRangeResp) GetRecords() []*GetLatestRecordsAndGuess
func (*GetLatestRecordsWithinRangeResp) ProtoMessage ¶ added in v0.4.2
func (*GetLatestRecordsWithinRangeResp) ProtoMessage()
func (*GetLatestRecordsWithinRangeResp) ProtoReflect ¶ added in v0.4.2
func (x *GetLatestRecordsWithinRangeResp) ProtoReflect() protoreflect.Message
func (*GetLatestRecordsWithinRangeResp) Reset ¶ added in v0.4.2
func (x *GetLatestRecordsWithinRangeResp) Reset()
func (*GetLatestRecordsWithinRangeResp) String ¶ added in v0.4.2
func (x *GetLatestRecordsWithinRangeResp) String() string
type GetLatestWithinRangeReq ¶ added in v0.4.2
type GetLatestWithinRangeReq struct { CenterLat float64 `protobuf:"fixed64,1,opt,name=center_lat,json=centerLat,proto3" json:"centerLat" form:"centerLat"` // @gotags: form:"centerLat" json:"centerLat" CenterLng float64 `protobuf:"fixed64,2,opt,name=center_lng,json=centerLng,proto3" json:"centerLng" form:"centerLng"` // @gotags: form:"centerLng" json:"centerLng" RadiusMeters float64 `protobuf:"fixed64,3,opt,name=radiusMeters,proto3" json:"radiusMeters" form:"radiusMeters"` // @gotags: form:"radiusMeters" json:"radiusMeters" // contains filtered or unexported fields }
func (*GetLatestWithinRangeReq) Descriptor
deprecated
added in
v0.4.2
func (*GetLatestWithinRangeReq) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestWithinRangeReq.ProtoReflect.Descriptor instead.
func (*GetLatestWithinRangeReq) GetCenterLat ¶ added in v0.4.2
func (x *GetLatestWithinRangeReq) GetCenterLat() float64
func (*GetLatestWithinRangeReq) GetCenterLng ¶ added in v0.4.2
func (x *GetLatestWithinRangeReq) GetCenterLng() float64
func (*GetLatestWithinRangeReq) GetRadiusMeters ¶ added in v0.4.2
func (x *GetLatestWithinRangeReq) GetRadiusMeters() float64
func (*GetLatestWithinRangeReq) ProtoMessage ¶ added in v0.4.2
func (*GetLatestWithinRangeReq) ProtoMessage()
func (*GetLatestWithinRangeReq) ProtoReflect ¶ added in v0.4.2
func (x *GetLatestWithinRangeReq) ProtoReflect() protoreflect.Message
func (*GetLatestWithinRangeReq) Reset ¶ added in v0.4.2
func (x *GetLatestWithinRangeReq) Reset()
func (*GetLatestWithinRangeReq) String ¶ added in v0.4.2
func (x *GetLatestWithinRangeReq) String() string
type GetPredictQualityReq ¶ added in v0.3.3
type GetPredictQualityReq struct { DeviceId uint64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"deviceId" form:"deviceId"` // @gotags: form:"deviceId" json:"deviceId" // contains filtered or unexported fields }
func (*GetPredictQualityReq) Descriptor
deprecated
added in
v0.3.3
func (*GetPredictQualityReq) Descriptor() ([]byte, []int)
Deprecated: Use GetPredictQualityReq.ProtoReflect.Descriptor instead.
func (*GetPredictQualityReq) GetDeviceId ¶ added in v0.3.3
func (x *GetPredictQualityReq) GetDeviceId() uint64
func (*GetPredictQualityReq) ProtoMessage ¶ added in v0.3.3
func (*GetPredictQualityReq) ProtoMessage()
func (*GetPredictQualityReq) ProtoReflect ¶ added in v0.3.3
func (x *GetPredictQualityReq) ProtoReflect() protoreflect.Message
func (*GetPredictQualityReq) Reset ¶ added in v0.3.3
func (x *GetPredictQualityReq) Reset()
func (*GetPredictQualityReq) String ¶ added in v0.3.3
func (x *GetPredictQualityReq) String() string
type GetStreamLatestIdWithinRangeResp ¶ added in v0.4.2
type GetStreamLatestIdWithinRangeResp struct { Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` Type GetStreamLatestWithinRangeRespType `protobuf:"varint,2,opt,name=type,proto3,enum=api.collection.GetStreamLatestWithinRangeRespType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*GetStreamLatestIdWithinRangeResp) Descriptor
deprecated
added in
v0.4.2
func (*GetStreamLatestIdWithinRangeResp) Descriptor() ([]byte, []int)
Deprecated: Use GetStreamLatestIdWithinRangeResp.ProtoReflect.Descriptor instead.
func (*GetStreamLatestIdWithinRangeResp) GetIds ¶ added in v0.4.2
func (x *GetStreamLatestIdWithinRangeResp) GetIds() []uint64
func (*GetStreamLatestIdWithinRangeResp) GetType ¶ added in v0.4.2
func (x *GetStreamLatestIdWithinRangeResp) GetType() GetStreamLatestWithinRangeRespType
func (*GetStreamLatestIdWithinRangeResp) ProtoMessage ¶ added in v0.4.2
func (*GetStreamLatestIdWithinRangeResp) ProtoMessage()
func (*GetStreamLatestIdWithinRangeResp) ProtoReflect ¶ added in v0.4.2
func (x *GetStreamLatestIdWithinRangeResp) ProtoReflect() protoreflect.Message
func (*GetStreamLatestIdWithinRangeResp) Reset ¶ added in v0.4.2
func (x *GetStreamLatestIdWithinRangeResp) Reset()
func (*GetStreamLatestIdWithinRangeResp) String ¶ added in v0.4.2
func (x *GetStreamLatestIdWithinRangeResp) String() string
type GetStreamLatestRecordsWithinRangeResp ¶ added in v0.4.2
type GetStreamLatestRecordsWithinRangeResp struct { Records []*GetLatestRecordsAndGuess `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Ids []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` Type GetStreamLatestWithinRangeRespType `protobuf:"varint,3,opt,name=type,proto3,enum=api.collection.GetStreamLatestWithinRangeRespType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*GetStreamLatestRecordsWithinRangeResp) Descriptor
deprecated
added in
v0.4.2
func (*GetStreamLatestRecordsWithinRangeResp) Descriptor() ([]byte, []int)
Deprecated: Use GetStreamLatestRecordsWithinRangeResp.ProtoReflect.Descriptor instead.
func (*GetStreamLatestRecordsWithinRangeResp) GetIds ¶ added in v0.4.2
func (x *GetStreamLatestRecordsWithinRangeResp) GetIds() []uint64
func (*GetStreamLatestRecordsWithinRangeResp) GetRecords ¶ added in v0.4.2
func (x *GetStreamLatestRecordsWithinRangeResp) GetRecords() []*GetLatestRecordsAndGuess
func (*GetStreamLatestRecordsWithinRangeResp) GetType ¶ added in v0.4.2
func (x *GetStreamLatestRecordsWithinRangeResp) GetType() GetStreamLatestWithinRangeRespType
func (*GetStreamLatestRecordsWithinRangeResp) ProtoMessage ¶ added in v0.4.2
func (*GetStreamLatestRecordsWithinRangeResp) ProtoMessage()
func (*GetStreamLatestRecordsWithinRangeResp) ProtoReflect ¶ added in v0.4.2
func (x *GetStreamLatestRecordsWithinRangeResp) ProtoReflect() protoreflect.Message
func (*GetStreamLatestRecordsWithinRangeResp) Reset ¶ added in v0.4.2
func (x *GetStreamLatestRecordsWithinRangeResp) Reset()
func (*GetStreamLatestRecordsWithinRangeResp) String ¶ added in v0.4.2
func (x *GetStreamLatestRecordsWithinRangeResp) String() string
type GetStreamLatestWithinRangeReq ¶ added in v0.4.2
type GetStreamLatestWithinRangeReq struct { CenterLat float64 `protobuf:"fixed64,1,opt,name=center_lat,json=centerLat,proto3" json:"centerLat" form:"centerLat"` // @gotags: form:"centerLat" json:"centerLat" CenterLng float64 `protobuf:"fixed64,2,opt,name=center_lng,json=centerLng,proto3" json:"centerLng" form:"centerLng"` // @gotags: form:"centerLng" json:"centerLng" RadiusMeters float64 `protobuf:"fixed64,3,opt,name=radiusMeters,proto3" json:"radiusMeters" form:"radiusMeters"` // @gotags: form:"radiusMeters" json:"radiusMeters" Interval uint32 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval" form:"interval"` // @gotags: form:"interval" json:"interval" // contains filtered or unexported fields }
func (*GetStreamLatestWithinRangeReq) Descriptor
deprecated
added in
v0.4.2
func (*GetStreamLatestWithinRangeReq) Descriptor() ([]byte, []int)
Deprecated: Use GetStreamLatestWithinRangeReq.ProtoReflect.Descriptor instead.
func (*GetStreamLatestWithinRangeReq) GetCenterLat ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) GetCenterLat() float64
func (*GetStreamLatestWithinRangeReq) GetCenterLng ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) GetCenterLng() float64
func (*GetStreamLatestWithinRangeReq) GetInterval ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) GetInterval() uint32
func (*GetStreamLatestWithinRangeReq) GetRadiusMeters ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) GetRadiusMeters() float64
func (*GetStreamLatestWithinRangeReq) ProtoMessage ¶ added in v0.4.2
func (*GetStreamLatestWithinRangeReq) ProtoMessage()
func (*GetStreamLatestWithinRangeReq) ProtoReflect ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) ProtoReflect() protoreflect.Message
func (*GetStreamLatestWithinRangeReq) Reset ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) Reset()
func (*GetStreamLatestWithinRangeReq) String ¶ added in v0.4.2
func (x *GetStreamLatestWithinRangeReq) String() string
type GetStreamLatestWithinRangeRespType ¶ added in v0.4.2
type GetStreamLatestWithinRangeRespType int32
const ( GetStreamLatestWithinRangeRespType_ADD GetStreamLatestWithinRangeRespType = 0 GetStreamLatestWithinRangeRespType_REMOVE GetStreamLatestWithinRangeRespType = 1 )
func (GetStreamLatestWithinRangeRespType) Descriptor ¶ added in v0.4.2
func (GetStreamLatestWithinRangeRespType) Descriptor() protoreflect.EnumDescriptor
func (GetStreamLatestWithinRangeRespType) Enum ¶ added in v0.4.2
func (x GetStreamLatestWithinRangeRespType) Enum() *GetStreamLatestWithinRangeRespType
func (GetStreamLatestWithinRangeRespType) EnumDescriptor
deprecated
added in
v0.4.2
func (GetStreamLatestWithinRangeRespType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetStreamLatestWithinRangeRespType.Descriptor instead.
func (GetStreamLatestWithinRangeRespType) Number ¶ added in v0.4.2
func (x GetStreamLatestWithinRangeRespType) Number() protoreflect.EnumNumber
func (GetStreamLatestWithinRangeRespType) String ¶ added in v0.4.2
func (x GetStreamLatestWithinRangeRespType) String() string
func (GetStreamLatestWithinRangeRespType) Type ¶ added in v0.4.2
func (GetStreamLatestWithinRangeRespType) Type() protoreflect.EnumType
type ListCollectionRecordReq ¶
type ListCollectionRecordReq struct { DeviceId uint64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"deviceId" form:"deviceId"` // @gotags: form:"deviceId" json:"deviceId" Page uint64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty" form:"page"` // @gotags: form:"page" Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty" form:"size"` // @gotags: form:"size" Before int64 `protobuf:"varint,4,opt,name=before,proto3" json:"before,omitempty" form:"before"` // @gotags: form:"before" After int64 `protobuf:"varint,5,opt,name=after,proto3" json:"after,omitempty" form:"after"` // @gotags: form:"after" Order CollectionRecordOrder `protobuf:"varint,6,opt,name=order,proto3,enum=api.collection.CollectionRecordOrder" json:"order,omitempty" form:"order"` // @gotags: form:"order" Sort Sort `protobuf:"varint,7,opt,name=sort,proto3,enum=api.collection.Sort" json:"sort,omitempty" form:"sort"` // @gotags: form:"sort" // contains filtered or unexported fields }
func (*ListCollectionRecordReq) Descriptor
deprecated
func (*ListCollectionRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionRecordReq.ProtoReflect.Descriptor instead.
func (*ListCollectionRecordReq) GetAfter ¶ added in v0.2.2
func (x *ListCollectionRecordReq) GetAfter() int64
func (*ListCollectionRecordReq) GetBefore ¶ added in v0.2.2
func (x *ListCollectionRecordReq) GetBefore() int64
func (*ListCollectionRecordReq) GetDeviceId ¶
func (x *ListCollectionRecordReq) GetDeviceId() uint64
func (*ListCollectionRecordReq) GetOrder ¶ added in v0.2.2
func (x *ListCollectionRecordReq) GetOrder() CollectionRecordOrder
func (*ListCollectionRecordReq) GetPage ¶
func (x *ListCollectionRecordReq) GetPage() uint64
func (*ListCollectionRecordReq) GetSize ¶ added in v0.2.2
func (x *ListCollectionRecordReq) GetSize() uint64
func (*ListCollectionRecordReq) GetSort ¶ added in v0.2.2
func (x *ListCollectionRecordReq) GetSort() Sort
func (*ListCollectionRecordReq) ProtoMessage ¶
func (*ListCollectionRecordReq) ProtoMessage()
func (*ListCollectionRecordReq) ProtoReflect ¶
func (x *ListCollectionRecordReq) ProtoReflect() protoreflect.Message
func (*ListCollectionRecordReq) Reset ¶
func (x *ListCollectionRecordReq) Reset()
func (*ListCollectionRecordReq) String ¶
func (x *ListCollectionRecordReq) String() string
type ListCollectionRecordResp ¶
type ListCollectionRecordResp struct { Records []*GetLatestRecordsAndGuess `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionRecordResp) Descriptor
deprecated
func (*ListCollectionRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionRecordResp.ProtoReflect.Descriptor instead.
func (*ListCollectionRecordResp) GetRecords ¶ added in v0.2.2
func (x *ListCollectionRecordResp) GetRecords() []*GetLatestRecordsAndGuess
func (*ListCollectionRecordResp) GetTotal ¶ added in v0.2.2
func (x *ListCollectionRecordResp) GetTotal() int64
func (*ListCollectionRecordResp) ProtoMessage ¶
func (*ListCollectionRecordResp) ProtoMessage()
func (*ListCollectionRecordResp) ProtoReflect ¶
func (x *ListCollectionRecordResp) ProtoReflect() protoreflect.Message
func (*ListCollectionRecordResp) Reset ¶
func (x *ListCollectionRecordResp) Reset()
func (*ListCollectionRecordResp) String ¶
func (x *ListCollectionRecordResp) String() string
type Sort ¶ added in v0.2.2
type Sort int32
func (Sort) Descriptor ¶ added in v0.2.2
func (Sort) Descriptor() protoreflect.EnumDescriptor
func (Sort) EnumDescriptor
deprecated
added in
v0.2.2
func (Sort) Number ¶ added in v0.2.2
func (x Sort) Number() protoreflect.EnumNumber
func (Sort) Type ¶ added in v0.2.2
func (Sort) Type() protoreflect.EnumType
type UnimplementedCollectionServer ¶
type UnimplementedCollectionServer struct{}
UnimplementedCollectionServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCollectionServer) CreateCollectionRecord ¶
func (UnimplementedCollectionServer) CreateCollectionRecord(context.Context, *CreateCollectionRecordReq) (*Empty, error)
func (UnimplementedCollectionServer) GetDeviceLastReport ¶ added in v0.3.3
func (UnimplementedCollectionServer) GetDeviceLastReport(context.Context, *GetDeviceLastReportReq) (*CollectionRecord, error)
func (UnimplementedCollectionServer) GetDeviceStreamEvent ¶ added in v0.2.4
func (UnimplementedCollectionServer) GetDeviceStreamEvent(*GetDeviceStreamEventReq, grpc.ServerStreamingServer[GetDeviceStreamEventResp]) error
func (UnimplementedCollectionServer) GetDeviceStreamReport ¶ added in v0.2.4
func (UnimplementedCollectionServer) GetDeviceStreamReport(*GetDeviceStreamReportReq, grpc.ServerStreamingServer[CreateCollectionRecordReq]) error
func (UnimplementedCollectionServer) GetLatestIdWithinRange ¶ added in v0.4.2
func (UnimplementedCollectionServer) GetLatestIdWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestIdWithinRangeResp, error)
func (UnimplementedCollectionServer) GetLatestRecordsWithinRange ¶ added in v0.4.2
func (UnimplementedCollectionServer) GetLatestRecordsWithinRange(context.Context, *GetLatestWithinRangeReq) (*GetLatestRecordsWithinRangeResp, error)
func (UnimplementedCollectionServer) GetPredictQuality ¶ added in v0.3.3
func (UnimplementedCollectionServer) GetPredictQuality(context.Context, *GetPredictQualityReq) (*waterquality.PredictAndGuessResp, error)
func (UnimplementedCollectionServer) GetStreamLatestIdWithinRange ¶ added in v0.4.2
func (UnimplementedCollectionServer) GetStreamLatestIdWithinRange(*GetStreamLatestWithinRangeReq, grpc.ServerStreamingServer[GetStreamLatestIdWithinRangeResp]) error
func (UnimplementedCollectionServer) GetStreamLatestRecordsWithinRange ¶ added in v0.4.2
func (UnimplementedCollectionServer) GetStreamLatestRecordsWithinRange(*GetStreamLatestWithinRangeReq, grpc.ServerStreamingServer[GetStreamLatestRecordsWithinRangeResp]) error
func (UnimplementedCollectionServer) ListCollectionRecord ¶
func (UnimplementedCollectionServer) ListCollectionRecord(context.Context, *ListCollectionRecordReq) (*ListCollectionRecordResp, error)
type UnsafeCollectionServer ¶
type UnsafeCollectionServer interface {
// contains filtered or unexported methods
}
UnsafeCollectionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CollectionServer will result in compilation errors.