Versions in this module Expand all Collapse all v1 v1.2.0 Jan 22, 2021 Changes in this version + var File_proto_device_device_group_proto protoreflect.FileDescriptor + var File_proto_device_device_proto protoreflect.FileDescriptor + func RegisterDeviceGroupHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterDeviceGroupHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeviceGroupClient) error + func RegisterDeviceGroupHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterDeviceGroupHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeviceGroupServer) error + func RegisterDeviceGroupServer(s *grpc.Server, srv DeviceGroupServer) + func RegisterDeviceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterDeviceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeviceClient) error + func RegisterDeviceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterDeviceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeviceServer) error + func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) + type AddDeviceRequest struct + Com485 uint32 + Detail string + GroupId string + Id string + ModelId string + Name string + Register uint32 + StationId uint32 + func (*AddDeviceRequest) Descriptor() ([]byte, []int) + func (*AddDeviceRequest) ProtoMessage() + func (x *AddDeviceRequest) GetCom485() uint32 + func (x *AddDeviceRequest) GetDetail() string + func (x *AddDeviceRequest) GetGroupId() string + func (x *AddDeviceRequest) GetId() string + func (x *AddDeviceRequest) GetModelId() string + func (x *AddDeviceRequest) GetName() string + func (x *AddDeviceRequest) GetRegister() uint32 + func (x *AddDeviceRequest) GetStationId() uint32 + func (x *AddDeviceRequest) ProtoReflect() protoreflect.Message + func (x *AddDeviceRequest) Reset() + func (x *AddDeviceRequest) String() string + type AddDeviceResponse struct + Id string + Name string + func (*AddDeviceResponse) Descriptor() ([]byte, []int) + func (*AddDeviceResponse) ProtoMessage() + func (x *AddDeviceResponse) GetId() string + func (x *AddDeviceResponse) GetName() string + func (x *AddDeviceResponse) ProtoReflect() protoreflect.Message + func (x *AddDeviceResponse) Reset() + func (x *AddDeviceResponse) String() string + type AddGroupRequest struct + Detail string + Name string + func (*AddGroupRequest) Descriptor() ([]byte, []int) + func (*AddGroupRequest) ProtoMessage() + func (x *AddGroupRequest) GetDetail() string + func (x *AddGroupRequest) GetName() string + func (x *AddGroupRequest) ProtoReflect() protoreflect.Message + func (x *AddGroupRequest) Reset() + func (x *AddGroupRequest) String() string + type DeleteDeviceRequest struct + Id string + func (*DeleteDeviceRequest) Descriptor() ([]byte, []int) + func (*DeleteDeviceRequest) ProtoMessage() + func (x *DeleteDeviceRequest) GetId() string + func (x *DeleteDeviceRequest) ProtoReflect() protoreflect.Message + func (x *DeleteDeviceRequest) Reset() + func (x *DeleteDeviceRequest) String() string + type DeleteDeviceResponse struct + func (*DeleteDeviceResponse) Descriptor() ([]byte, []int) + func (*DeleteDeviceResponse) ProtoMessage() + func (x *DeleteDeviceResponse) ProtoReflect() protoreflect.Message + func (x *DeleteDeviceResponse) Reset() + func (x *DeleteDeviceResponse) String() string + type DeleteGroupRequest struct + Id string + func (*DeleteGroupRequest) Descriptor() ([]byte, []int) + func (*DeleteGroupRequest) ProtoMessage() + func (x *DeleteGroupRequest) GetId() string + func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message + func (x *DeleteGroupRequest) Reset() + func (x *DeleteGroupRequest) String() string + type DeleteGroupResponse struct + func (*DeleteGroupResponse) Descriptor() ([]byte, []int) + func (*DeleteGroupResponse) ProtoMessage() + func (x *DeleteGroupResponse) ProtoReflect() protoreflect.Message + func (x *DeleteGroupResponse) Reset() + func (x *DeleteGroupResponse) String() string + type DeviceClient interface + AddDevice func(ctx context.Context, in *AddDeviceRequest, opts ...grpc.CallOption) (*AddDeviceResponse, error) + DeleteDevice func(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*DeleteDeviceResponse, error) + ListDevice func(ctx context.Context, in *ListDeviceRequest, opts ...grpc.CallOption) (*ListDeviceResponse, error) + UpdateDevice func(ctx context.Context, in *Device_Struct, opts ...grpc.CallOption) (*Device_Struct, error) + func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient + type DeviceGroupClient interface + AddGroup func(ctx context.Context, in *AddGroupRequest, opts ...grpc.CallOption) (*Group, error) + DeleteGroup func(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error) + ListGroup func(ctx context.Context, in *ListGroupRequest, opts ...grpc.CallOption) (*ListGroupResponse, error) + UpdateGroup func(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Group, error) + func NewDeviceGroupClient(cc grpc.ClientConnInterface) DeviceGroupClient + type DeviceGroupServer interface + AddGroup func(context.Context, *AddGroupRequest) (*Group, error) + DeleteGroup func(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) + ListGroup func(context.Context, *ListGroupRequest) (*ListGroupResponse, error) + UpdateGroup func(context.Context, *Group) (*Group, error) + type DeviceServer interface + AddDevice func(context.Context, *AddDeviceRequest) (*AddDeviceResponse, error) + DeleteDevice func(context.Context, *DeleteDeviceRequest) (*DeleteDeviceResponse, error) + ListDevice func(context.Context, *ListDeviceRequest) (*ListDeviceResponse, error) + UpdateDevice func(context.Context, *Device_Struct) (*Device_Struct, error) + type Device_Struct struct + Com485 uint32 + CreateTime string + Detail string + GroupId string + GroupName string + Id string + ModelId string + ModelName string + Name string + Register uint32 + StationId uint32 + func (*Device_Struct) Descriptor() ([]byte, []int) + func (*Device_Struct) ProtoMessage() + func (x *Device_Struct) GetCom485() uint32 + func (x *Device_Struct) GetCreateTime() string + func (x *Device_Struct) GetDetail() string + func (x *Device_Struct) GetGroupId() string + func (x *Device_Struct) GetGroupName() string + func (x *Device_Struct) GetId() string + func (x *Device_Struct) GetModelId() string + func (x *Device_Struct) GetModelName() string + func (x *Device_Struct) GetName() string + func (x *Device_Struct) GetRegister() uint32 + func (x *Device_Struct) GetStationId() uint32 + func (x *Device_Struct) ProtoReflect() protoreflect.Message + func (x *Device_Struct) Reset() + func (x *Device_Struct) String() string + type Group struct + CreateTime string + Detail string + Id string + Name string + func (*Group) Descriptor() ([]byte, []int) + func (*Group) ProtoMessage() + func (x *Group) GetCreateTime() string + func (x *Group) GetDetail() string + func (x *Group) GetId() string + func (x *Group) GetName() string + func (x *Group) ProtoReflect() protoreflect.Message + func (x *Group) Reset() + func (x *Group) String() string + type ListDeviceRequest struct + PageNum uint32 + PageSize uint32 + func (*ListDeviceRequest) Descriptor() ([]byte, []int) + func (*ListDeviceRequest) ProtoMessage() + func (x *ListDeviceRequest) GetPageNum() uint32 + func (x *ListDeviceRequest) GetPageSize() uint32 + func (x *ListDeviceRequest) ProtoReflect() protoreflect.Message + func (x *ListDeviceRequest) Reset() + func (x *ListDeviceRequest) String() string + type ListDeviceResponse struct + Device []*Device_Struct + Total uint32 + func (*ListDeviceResponse) Descriptor() ([]byte, []int) + func (*ListDeviceResponse) ProtoMessage() + func (x *ListDeviceResponse) GetDevice() []*Device_Struct + func (x *ListDeviceResponse) GetTotal() uint32 + func (x *ListDeviceResponse) ProtoReflect() protoreflect.Message + func (x *ListDeviceResponse) Reset() + func (x *ListDeviceResponse) String() string + type ListGroupRequest struct + PageNum uint32 + PageSize uint32 + func (*ListGroupRequest) Descriptor() ([]byte, []int) + func (*ListGroupRequest) ProtoMessage() + func (x *ListGroupRequest) GetPageNum() uint32 + func (x *ListGroupRequest) GetPageSize() uint32 + func (x *ListGroupRequest) ProtoReflect() protoreflect.Message + func (x *ListGroupRequest) Reset() + func (x *ListGroupRequest) String() string + type ListGroupResponse struct + Group []*Group + Total uint32 + func (*ListGroupResponse) Descriptor() ([]byte, []int) + func (*ListGroupResponse) ProtoMessage() + func (x *ListGroupResponse) GetGroup() []*Group + func (x *ListGroupResponse) GetTotal() uint32 + func (x *ListGroupResponse) ProtoReflect() protoreflect.Message + func (x *ListGroupResponse) Reset() + func (x *ListGroupResponse) String() string + type UnimplementedDeviceGroupServer struct + func (*UnimplementedDeviceGroupServer) AddGroup(context.Context, *AddGroupRequest) (*Group, error) + func (*UnimplementedDeviceGroupServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) + func (*UnimplementedDeviceGroupServer) ListGroup(context.Context, *ListGroupRequest) (*ListGroupResponse, error) + func (*UnimplementedDeviceGroupServer) UpdateGroup(context.Context, *Group) (*Group, error) + type UnimplementedDeviceServer struct + func (*UnimplementedDeviceServer) AddDevice(context.Context, *AddDeviceRequest) (*AddDeviceResponse, error) + func (*UnimplementedDeviceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*DeleteDeviceResponse, error) + func (*UnimplementedDeviceServer) ListDevice(context.Context, *ListDeviceRequest) (*ListDeviceResponse, error) + func (*UnimplementedDeviceServer) UpdateDevice(context.Context, *Device_Struct) (*Device_Struct, error)