Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- type GetModuleRequest
- type Module
- func (*Module) Descriptor() ([]byte, []int)deprecated
- func (x *Module) GetAlias() string
- func (x *Module) GetCreationDate() int64
- func (x *Module) GetCurrentstate() string
- func (x *Module) GetLocation() *Point
- func (x *Module) GetModuleID() string
- func (x *Module) GetPhoneNumber() string
- func (x *Module) GetRiverID() string
- func (x *Module) GetRiverName() string
- func (x *Module) GetSerial() string
- func (x *Module) GetUpdateDate() int64
- func (x *Module) GetUserID() string
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) String() string
- type Point
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UpdateModuleRequest
- func (*UpdateModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateModuleRequest) GetModuleID() string
- func (x *UpdateModuleRequest) GetStatus() string
- func (*UpdateModuleRequest) ProtoMessage()
- func (x *UpdateModuleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateModuleRequest) Reset()
- func (x *UpdateModuleRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_app_river_management_handlers_grpc_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
Types ¶
type GetModuleRequest ¶
type GetModuleRequest struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // contains filtered or unexported fields }
func (*GetModuleRequest) Descriptor
deprecated
func (*GetModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleRequest.ProtoReflect.Descriptor instead.
func (*GetModuleRequest) GetPhoneNumber ¶
func (x *GetModuleRequest) GetPhoneNumber() string
func (*GetModuleRequest) ProtoMessage ¶
func (*GetModuleRequest) ProtoMessage()
func (*GetModuleRequest) ProtoReflect ¶
func (x *GetModuleRequest) ProtoReflect() protoreflect.Message
func (*GetModuleRequest) Reset ¶
func (x *GetModuleRequest) Reset()
func (*GetModuleRequest) String ¶
func (x *GetModuleRequest) String() string
type Module ¶
type Module struct { ModuleID string `protobuf:"bytes,1,opt,name=moduleID,proto3" json:"moduleID,omitempty"` PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` RiverID string `protobuf:"bytes,4,opt,name=riverID,proto3" json:"riverID,omitempty"` RiverName string `protobuf:"bytes,5,opt,name=riverName,proto3" json:"riverName,omitempty"` UserID string `protobuf:"bytes,6,opt,name=userID,proto3" json:"userID,omitempty"` CreationDate int64 `protobuf:"varint,7,opt,name=creationDate,proto3" json:"creationDate,omitempty"` UpdateDate int64 `protobuf:"varint,8,opt,name=updateDate,proto3" json:"updateDate,omitempty"` Currentstate string `protobuf:"bytes,9,opt,name=currentstate,proto3" json:"currentstate,omitempty"` Serial string `protobuf:"bytes,10,opt,name=serial,proto3" json:"serial,omitempty"` Location *Point `protobuf:"bytes,11,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*Module) Descriptor
deprecated
func (*Module) GetCreationDate ¶
func (*Module) GetCurrentstate ¶
func (*Module) GetLocation ¶
func (*Module) GetModuleID ¶
func (*Module) GetPhoneNumber ¶
func (*Module) GetRiverID ¶
func (*Module) GetRiverName ¶
func (*Module) GetUpdateDate ¶
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
type Point ¶
type Point struct { Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,64,opt,name=longitude,proto3" json:"longitude,omitempty"` // contains filtered or unexported fields }
func (*Point) Descriptor
deprecated
func (*Point) GetLatitude ¶
func (*Point) GetLongitude ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface { GetModuleByPhonenumber(ctx context.Context, in *GetModuleRequest, opts ...grpc.CallOption) (*Module, error) UpdateModuleStatus(ctx context.Context, in *UpdateModuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { GetModuleByPhonenumber(context.Context, *GetModuleRequest) (*Module, error) UpdateModuleStatus(context.Context, *UpdateModuleRequest) (*emptypb.Empty, error) }
ServiceServer is the server API for Service service.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) GetModuleByPhonenumber ¶
func (*UnimplementedServiceServer) GetModuleByPhonenumber(context.Context, *GetModuleRequest) (*Module, error)
func (*UnimplementedServiceServer) UpdateModuleStatus ¶
func (*UnimplementedServiceServer) UpdateModuleStatus(context.Context, *UpdateModuleRequest) (*emptypb.Empty, error)
type UpdateModuleRequest ¶
type UpdateModuleRequest struct { ModuleID string `protobuf:"bytes,1,opt,name=moduleID,proto3" json:"moduleID,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateModuleRequest) Descriptor
deprecated
func (*UpdateModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModuleRequest.ProtoReflect.Descriptor instead.
func (*UpdateModuleRequest) GetModuleID ¶
func (x *UpdateModuleRequest) GetModuleID() string
func (*UpdateModuleRequest) GetStatus ¶
func (x *UpdateModuleRequest) GetStatus() string
func (*UpdateModuleRequest) ProtoMessage ¶
func (*UpdateModuleRequest) ProtoMessage()
func (*UpdateModuleRequest) ProtoReflect ¶
func (x *UpdateModuleRequest) ProtoReflect() protoreflect.Message
func (*UpdateModuleRequest) Reset ¶
func (x *UpdateModuleRequest) Reset()
func (*UpdateModuleRequest) String ¶
func (x *UpdateModuleRequest) String() string
Click to show internal directories.
Click to hide internal directories.