Documentation ¶
Index ¶
- Constants
- func GetInt64ProductID(id string) int64
- func GetStrProductID(id int64) string
- func RegisterDmServer(s *grpc.Server, srv DmServer)
- type AUTH
- type AUTO_REG
- type AccessAuthReq
- func (*AccessAuthReq) Descriptor() ([]byte, []int)
- func (m *AccessAuthReq) GetAccess() string
- func (m *AccessAuthReq) GetClientID() string
- func (m *AccessAuthReq) GetIp() string
- func (m *AccessAuthReq) GetTopic() string
- func (m *AccessAuthReq) GetUsername() string
- func (*AccessAuthReq) ProtoMessage()
- func (m *AccessAuthReq) Reset()
- func (m *AccessAuthReq) String() string
- func (m *AccessAuthReq) XXX_DiscardUnknown()
- func (m *AccessAuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessAuthReq) XXX_Merge(src proto.Message)
- func (m *AccessAuthReq) XXX_Size() int
- func (m *AccessAuthReq) XXX_Unmarshal(b []byte) error
- type DATA
- type DEV
- type DeviceData
- func (*DeviceData) Descriptor() ([]byte, []int)
- func (m *DeviceData) GetFieldName() string
- func (m *DeviceData) GetMethod() string
- func (m *DeviceData) GetPayload() string
- func (m *DeviceData) GetTimestamp() int64
- func (*DeviceData) ProtoMessage()
- func (m *DeviceData) Reset()
- func (m *DeviceData) String() string
- func (m *DeviceData) XXX_DiscardUnknown()
- func (m *DeviceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceData) XXX_Merge(src proto.Message)
- func (m *DeviceData) XXX_Size() int
- func (m *DeviceData) XXX_Unmarshal(b []byte) error
- type DeviceInfo
- func (*DeviceInfo) Descriptor() ([]byte, []int)
- func (m *DeviceInfo) GetCert() string
- func (m *DeviceInfo) GetCreatedTime() int64
- func (m *DeviceInfo) GetDeviceName() string
- func (m *DeviceInfo) GetFirstLogin() int64
- func (m *DeviceInfo) GetLastLogin() int64
- func (m *DeviceInfo) GetLogLevel() int64
- func (m *DeviceInfo) GetProductID() string
- func (m *DeviceInfo) GetSecret() string
- func (m *DeviceInfo) GetVersion() *wrapperspb.StringValue
- func (*DeviceInfo) ProtoMessage()
- func (m *DeviceInfo) Reset()
- func (m *DeviceInfo) String() string
- func (m *DeviceInfo) XXX_DiscardUnknown()
- func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceInfo) XXX_Merge(src proto.Message)
- func (m *DeviceInfo) XXX_Size() int
- func (m *DeviceInfo) XXX_Unmarshal(b []byte) error
- type DmClient
- type DmServer
- type GetDeviceDataReq
- func (*GetDeviceDataReq) Descriptor() ([]byte, []int)
- func (m *GetDeviceDataReq) GetDeviceName() string
- func (m *GetDeviceDataReq) GetFieldName() string
- func (m *GetDeviceDataReq) GetMethod() string
- func (m *GetDeviceDataReq) GetProductID() string
- func (*GetDeviceDataReq) ProtoMessage()
- func (m *GetDeviceDataReq) Reset()
- func (m *GetDeviceDataReq) String() string
- func (m *GetDeviceDataReq) XXX_DiscardUnknown()
- func (m *GetDeviceDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDeviceDataReq) XXX_Merge(src proto.Message)
- func (m *GetDeviceDataReq) XXX_Size() int
- func (m *GetDeviceDataReq) XXX_Unmarshal(b []byte) error
- type GetDeviceDataResp
- func (*GetDeviceDataResp) Descriptor() ([]byte, []int)
- func (m *GetDeviceDataResp) GetData() []*DeviceData
- func (*GetDeviceDataResp) ProtoMessage()
- func (m *GetDeviceDataResp) Reset()
- func (m *GetDeviceDataResp) String() string
- func (m *GetDeviceDataResp) XXX_DiscardUnknown()
- func (m *GetDeviceDataResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDeviceDataResp) XXX_Merge(src proto.Message)
- func (m *GetDeviceDataResp) XXX_Size() int
- func (m *GetDeviceDataResp) XXX_Unmarshal(b []byte) error
- type GetDeviceInfoReq
- func (*GetDeviceInfoReq) Descriptor() ([]byte, []int)
- func (m *GetDeviceInfoReq) GetDeviceName() string
- func (m *GetDeviceInfoReq) GetPage() *PageInfo
- func (m *GetDeviceInfoReq) GetProductID() string
- func (*GetDeviceInfoReq) ProtoMessage()
- func (m *GetDeviceInfoReq) Reset()
- func (m *GetDeviceInfoReq) String() string
- func (m *GetDeviceInfoReq) XXX_DiscardUnknown()
- func (m *GetDeviceInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDeviceInfoReq) XXX_Merge(src proto.Message)
- func (m *GetDeviceInfoReq) XXX_Size() int
- func (m *GetDeviceInfoReq) XXX_Unmarshal(b []byte) error
- type GetDeviceInfoResp
- func (*GetDeviceInfoResp) Descriptor() ([]byte, []int)
- func (m *GetDeviceInfoResp) GetInfo() []*DeviceInfo
- func (m *GetDeviceInfoResp) GetTotal() int64
- func (*GetDeviceInfoResp) ProtoMessage()
- func (m *GetDeviceInfoResp) Reset()
- func (m *GetDeviceInfoResp) String() string
- func (m *GetDeviceInfoResp) XXX_DiscardUnknown()
- func (m *GetDeviceInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDeviceInfoResp) XXX_Merge(src proto.Message)
- func (m *GetDeviceInfoResp) XXX_Size() int
- func (m *GetDeviceInfoResp) XXX_Unmarshal(b []byte) error
- type GetDeviceLogReq
- func (*GetDeviceLogReq) Descriptor() ([]byte, []int)
- func (m *GetDeviceLogReq) GetDeviceName() string
- func (m *GetDeviceLogReq) GetFieldName() string
- func (m *GetDeviceLogReq) GetLimit() int64
- func (m *GetDeviceLogReq) GetMethod() string
- func (m *GetDeviceLogReq) GetProductID() string
- func (m *GetDeviceLogReq) GetTimeEnd() int64
- func (m *GetDeviceLogReq) GetTimeStart() int64
- func (*GetDeviceLogReq) ProtoMessage()
- func (m *GetDeviceLogReq) Reset()
- func (m *GetDeviceLogReq) String() string
- func (m *GetDeviceLogReq) XXX_DiscardUnknown()
- func (m *GetDeviceLogReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDeviceLogReq) XXX_Merge(src proto.Message)
- func (m *GetDeviceLogReq) XXX_Size() int
- func (m *GetDeviceLogReq) XXX_Unmarshal(b []byte) error
- type GetDeviceLogResp
- func (*GetDeviceLogResp) Descriptor() ([]byte, []int)
- func (m *GetDeviceLogResp) GetData() []*DeviceData
- func (m *GetDeviceLogResp) GetTotal() int64
- func (*GetDeviceLogResp) ProtoMessage()
- func (m *GetDeviceLogResp) Reset()
- func (m *GetDeviceLogResp) String() string
- func (m *GetDeviceLogResp) XXX_DiscardUnknown()
- func (m *GetDeviceLogResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDeviceLogResp) XXX_Merge(src proto.Message)
- func (m *GetDeviceLogResp) XXX_Size() int
- func (m *GetDeviceLogResp) XXX_Unmarshal(b []byte) error
- type GetProductInfoReq
- func (*GetProductInfoReq) Descriptor() ([]byte, []int)
- func (m *GetProductInfoReq) GetPage() *PageInfo
- func (m *GetProductInfoReq) GetProductID() string
- func (*GetProductInfoReq) ProtoMessage()
- func (m *GetProductInfoReq) Reset()
- func (m *GetProductInfoReq) String() string
- func (m *GetProductInfoReq) XXX_DiscardUnknown()
- func (m *GetProductInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductInfoReq) XXX_Merge(src proto.Message)
- func (m *GetProductInfoReq) XXX_Size() int
- func (m *GetProductInfoReq) XXX_Unmarshal(b []byte) error
- type GetProductInfoResp
- func (*GetProductInfoResp) Descriptor() ([]byte, []int)
- func (m *GetProductInfoResp) GetInfo() []*ProductInfo
- func (m *GetProductInfoResp) GetTotal() int64
- func (*GetProductInfoResp) ProtoMessage()
- func (m *GetProductInfoResp) Reset()
- func (m *GetProductInfoResp) String() string
- func (m *GetProductInfoResp) XXX_DiscardUnknown()
- func (m *GetProductInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductInfoResp) XXX_Merge(src proto.Message)
- func (m *GetProductInfoResp) XXX_Size() int
- func (m *GetProductInfoResp) XXX_Unmarshal(b []byte) error
- type LOG_LEVEL
- type LoginAuthReq
- func (*LoginAuthReq) Descriptor() ([]byte, []int)
- func (m *LoginAuthReq) GetCertificate() []byte
- func (m *LoginAuthReq) GetClientID() string
- func (m *LoginAuthReq) GetIp() string
- func (m *LoginAuthReq) GetPassword() string
- func (m *LoginAuthReq) GetUsername() string
- func (*LoginAuthReq) ProtoMessage()
- func (m *LoginAuthReq) Reset()
- func (m *LoginAuthReq) String() string
- func (m *LoginAuthReq) XXX_DiscardUnknown()
- func (m *LoginAuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginAuthReq) XXX_Merge(src proto.Message)
- func (m *LoginAuthReq) XXX_Size() int
- func (m *LoginAuthReq) XXX_Unmarshal(b []byte) error
- type LoginDevice
- type ManResp
- func (*ManResp) Descriptor() ([]byte, []int)
- func (m *ManResp) GetID() int64
- func (*ManResp) ProtoMessage()
- func (m *ManResp) Reset()
- func (m *ManResp) String() string
- func (m *ManResp) XXX_DiscardUnknown()
- func (m *ManResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManResp) XXX_Merge(src proto.Message)
- func (m *ManResp) XXX_Size() int
- func (m *ManResp) XXX_Unmarshal(b []byte) error
- type ManageDeviceReq
- func (*ManageDeviceReq) Descriptor() ([]byte, []int)
- func (m *ManageDeviceReq) GetInfo() *DeviceInfo
- func (m *ManageDeviceReq) GetOpt() int64
- func (*ManageDeviceReq) ProtoMessage()
- func (m *ManageDeviceReq) Reset()
- func (m *ManageDeviceReq) String() string
- func (m *ManageDeviceReq) XXX_DiscardUnknown()
- func (m *ManageDeviceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManageDeviceReq) XXX_Merge(src proto.Message)
- func (m *ManageDeviceReq) XXX_Size() int
- func (m *ManageDeviceReq) XXX_Unmarshal(b []byte) error
- type ManageProductReq
- func (*ManageProductReq) Descriptor() ([]byte, []int)
- func (m *ManageProductReq) GetInfo() *ProductInfo
- func (m *ManageProductReq) GetOpt() int64
- func (*ManageProductReq) ProtoMessage()
- func (m *ManageProductReq) Reset()
- func (m *ManageProductReq) String() string
- func (m *ManageProductReq) XXX_DiscardUnknown()
- func (m *ManageProductReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManageProductReq) XXX_Merge(src proto.Message)
- func (m *ManageProductReq) XXX_Size() int
- func (m *ManageProductReq) XXX_Unmarshal(b []byte) error
- type NET
- type PageInfo
- func (*PageInfo) Descriptor() ([]byte, []int)
- func (m *PageInfo) GetPage() int64
- func (m *PageInfo) GetPageSize() int64
- func (*PageInfo) ProtoMessage()
- func (m *PageInfo) Reset()
- func (m *PageInfo) String() string
- func (m *PageInfo) XXX_DiscardUnknown()
- func (m *PageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PageInfo) XXX_Merge(src proto.Message)
- func (m *PageInfo) XXX_Size() int
- func (m *PageInfo) XXX_Unmarshal(b []byte) error
- type ProductInfo
- func (*ProductInfo) Descriptor() ([]byte, []int)
- func (m *ProductInfo) GetAuthMode() int64
- func (m *ProductInfo) GetAutoRegister() int64
- func (m *ProductInfo) GetCategoryID() int64
- func (m *ProductInfo) GetCreatedTime() int64
- func (m *ProductInfo) GetDataProto() int64
- func (m *ProductInfo) GetDescription() *wrapperspb.StringValue
- func (m *ProductInfo) GetDevStatus() *wrapperspb.StringValue
- func (m *ProductInfo) GetDeviceType() int64
- func (m *ProductInfo) GetNetType() int64
- func (m *ProductInfo) GetProductID() string
- func (m *ProductInfo) GetProductName() string
- func (m *ProductInfo) GetSecret() string
- func (m *ProductInfo) GetTemplate() *wrapperspb.StringValue
- func (*ProductInfo) ProtoMessage()
- func (m *ProductInfo) Reset()
- func (m *ProductInfo) String() string
- func (m *ProductInfo) XXX_DiscardUnknown()
- func (m *ProductInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProductInfo) XXX_Merge(src proto.Message)
- func (m *ProductInfo) XXX_Size() int
- func (m *ProductInfo) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type SendActionReq
- func (*SendActionReq) Descriptor() ([]byte, []int)
- func (m *SendActionReq) GetActionId() string
- func (m *SendActionReq) GetDeviceName() string
- func (m *SendActionReq) GetInputParams() string
- func (m *SendActionReq) GetProductID() string
- func (*SendActionReq) ProtoMessage()
- func (m *SendActionReq) Reset()
- func (m *SendActionReq) String() string
- func (m *SendActionReq) XXX_DiscardUnknown()
- func (m *SendActionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendActionReq) XXX_Merge(src proto.Message)
- func (m *SendActionReq) XXX_Size() int
- func (m *SendActionReq) XXX_Unmarshal(b []byte) error
- type SendActionResp
- func (*SendActionResp) Descriptor() ([]byte, []int)
- func (m *SendActionResp) GetClientToken() string
- func (m *SendActionResp) GetCode() int64
- func (m *SendActionResp) GetOutputParams() string
- func (m *SendActionResp) GetStatus() string
- func (*SendActionResp) ProtoMessage()
- func (m *SendActionResp) Reset()
- func (m *SendActionResp) String() string
- func (m *SendActionResp) XXX_DiscardUnknown()
- func (m *SendActionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendActionResp) XXX_Merge(src proto.Message)
- func (m *SendActionResp) XXX_Size() int
- func (m *SendActionResp) XXX_Unmarshal(b []byte) error
- type SendPropertyReq
- func (*SendPropertyReq) Descriptor() ([]byte, []int)
- func (m *SendPropertyReq) GetData() string
- func (m *SendPropertyReq) GetDeviceName() string
- func (m *SendPropertyReq) GetMethod() string
- func (m *SendPropertyReq) GetProductID() string
- func (*SendPropertyReq) ProtoMessage()
- func (m *SendPropertyReq) Reset()
- func (m *SendPropertyReq) String() string
- func (m *SendPropertyReq) XXX_DiscardUnknown()
- func (m *SendPropertyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendPropertyReq) XXX_Merge(src proto.Message)
- func (m *SendPropertyReq) XXX_Size() int
- func (m *SendPropertyReq) XXX_Unmarshal(b []byte) error
- type SendPropertyResp
- func (*SendPropertyResp) Descriptor() ([]byte, []int)
- func (m *SendPropertyResp) GetCode() int64
- func (m *SendPropertyResp) GetData() string
- func (m *SendPropertyResp) GetStatus() string
- func (*SendPropertyResp) ProtoMessage()
- func (m *SendPropertyResp) Reset()
- func (m *SendPropertyResp) String() string
- func (m *SendPropertyResp) XXX_DiscardUnknown()
- func (m *SendPropertyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendPropertyResp) XXX_Merge(src proto.Message)
- func (m *SendPropertyResp) XXX_Size() int
- func (m *SendPropertyResp) XXX_Unmarshal(b []byte) error
- type UnimplementedDmServer
- func (*UnimplementedDmServer) AccessAuth(ctx context.Context, req *AccessAuthReq) (*Response, error)
- func (*UnimplementedDmServer) GetDeviceData(ctx context.Context, req *GetDeviceDataReq) (*GetDeviceDataResp, error)
- func (*UnimplementedDmServer) GetDeviceInfo(ctx context.Context, req *GetDeviceInfoReq) (*GetDeviceInfoResp, error)
- func (*UnimplementedDmServer) GetDeviceLog(ctx context.Context, req *GetDeviceLogReq) (*GetDeviceLogResp, error)
- func (*UnimplementedDmServer) GetProductInfo(ctx context.Context, req *GetProductInfoReq) (*GetProductInfoResp, error)
- func (*UnimplementedDmServer) LoginAuth(ctx context.Context, req *LoginAuthReq) (*Response, error)
- func (*UnimplementedDmServer) ManageDevice(ctx context.Context, req *ManageDeviceReq) (*DeviceInfo, error)
- func (*UnimplementedDmServer) ManageProduct(ctx context.Context, req *ManageProductReq) (*ProductInfo, error)
- func (*UnimplementedDmServer) SendAction(ctx context.Context, req *SendActionReq) (*SendActionResp, error)
- func (*UnimplementedDmServer) SendProperty(ctx context.Context, req *SendPropertyReq) (*SendPropertyResp, error)
Constants ¶
View Source
const (
PRODUCTID_LEN = 11
)
Variables ¶
This section is empty.
Functions ¶
func GetInt64ProductID ¶
func RegisterDmServer ¶
Types ¶
type AccessAuthReq ¶
type AccessAuthReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` ClientID string `protobuf:"bytes,3,opt,name=clientID,proto3" json:"clientID,omitempty"` Access string `protobuf:"bytes,4,opt,name=access,proto3" json:"access,omitempty"` Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccessAuthReq) Descriptor ¶
func (*AccessAuthReq) Descriptor() ([]byte, []int)
func (*AccessAuthReq) GetAccess ¶
func (m *AccessAuthReq) GetAccess() string
func (*AccessAuthReq) GetClientID ¶
func (m *AccessAuthReq) GetClientID() string
func (*AccessAuthReq) GetIp ¶
func (m *AccessAuthReq) GetIp() string
func (*AccessAuthReq) GetTopic ¶
func (m *AccessAuthReq) GetTopic() string
func (*AccessAuthReq) GetUsername ¶
func (m *AccessAuthReq) GetUsername() string
func (*AccessAuthReq) ProtoMessage ¶
func (*AccessAuthReq) ProtoMessage()
func (*AccessAuthReq) Reset ¶
func (m *AccessAuthReq) Reset()
func (*AccessAuthReq) String ¶
func (m *AccessAuthReq) String() string
func (*AccessAuthReq) XXX_DiscardUnknown ¶
func (m *AccessAuthReq) XXX_DiscardUnknown()
func (*AccessAuthReq) XXX_Marshal ¶
func (m *AccessAuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessAuthReq) XXX_Merge ¶
func (m *AccessAuthReq) XXX_Merge(src proto.Message)
func (*AccessAuthReq) XXX_Size ¶
func (m *AccessAuthReq) XXX_Size() int
func (*AccessAuthReq) XXX_Unmarshal ¶
func (m *AccessAuthReq) XXX_Unmarshal(b []byte) error
type DeviceData ¶
type DeviceData struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` FieldName string `protobuf:"bytes,3,opt,name=FieldName,proto3" json:"FieldName,omitempty"` Payload string `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
设备的日志数据
func (*DeviceData) Descriptor ¶
func (*DeviceData) Descriptor() ([]byte, []int)
func (*DeviceData) GetFieldName ¶
func (m *DeviceData) GetFieldName() string
func (*DeviceData) GetMethod ¶
func (m *DeviceData) GetMethod() string
func (*DeviceData) GetPayload ¶
func (m *DeviceData) GetPayload() string
func (*DeviceData) GetTimestamp ¶
func (m *DeviceData) GetTimestamp() int64
func (*DeviceData) ProtoMessage ¶
func (*DeviceData) ProtoMessage()
func (*DeviceData) Reset ¶
func (m *DeviceData) Reset()
func (*DeviceData) String ¶
func (m *DeviceData) String() string
func (*DeviceData) XXX_DiscardUnknown ¶
func (m *DeviceData) XXX_DiscardUnknown()
func (*DeviceData) XXX_Marshal ¶
func (m *DeviceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceData) XXX_Merge ¶
func (m *DeviceData) XXX_Merge(src proto.Message)
func (*DeviceData) XXX_Size ¶
func (m *DeviceData) XXX_Size() int
func (*DeviceData) XXX_Unmarshal ¶
func (m *DeviceData) XXX_Unmarshal(b []byte) error
type DeviceInfo ¶
type DeviceInfo struct { ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` DeviceName string `protobuf:"bytes,3,opt,name=deviceName,proto3" json:"deviceName,omitempty"` CreatedTime int64 `protobuf:"varint,4,opt,name=createdTime,proto3" json:"createdTime,omitempty"` Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` FirstLogin int64 `protobuf:"varint,6,opt,name=firstLogin,proto3" json:"firstLogin,omitempty"` LastLogin int64 `protobuf:"varint,7,opt,name=lastLogin,proto3" json:"lastLogin,omitempty"` Version *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` LogLevel int64 `protobuf:"varint,9,opt,name=logLevel,proto3" json:"logLevel,omitempty"` Cert string `protobuf:"bytes,10,opt,name=cert,proto3" json:"cert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeviceInfo) Descriptor ¶
func (*DeviceInfo) Descriptor() ([]byte, []int)
func (*DeviceInfo) GetCert ¶
func (m *DeviceInfo) GetCert() string
func (*DeviceInfo) GetCreatedTime ¶
func (m *DeviceInfo) GetCreatedTime() int64
func (*DeviceInfo) GetDeviceName ¶
func (m *DeviceInfo) GetDeviceName() string
func (*DeviceInfo) GetFirstLogin ¶
func (m *DeviceInfo) GetFirstLogin() int64
func (*DeviceInfo) GetLastLogin ¶
func (m *DeviceInfo) GetLastLogin() int64
func (*DeviceInfo) GetLogLevel ¶
func (m *DeviceInfo) GetLogLevel() int64
func (*DeviceInfo) GetProductID ¶
func (m *DeviceInfo) GetProductID() string
func (*DeviceInfo) GetSecret ¶
func (m *DeviceInfo) GetSecret() string
func (*DeviceInfo) GetVersion ¶
func (m *DeviceInfo) GetVersion() *wrapperspb.StringValue
func (*DeviceInfo) ProtoMessage ¶
func (*DeviceInfo) ProtoMessage()
func (*DeviceInfo) Reset ¶
func (m *DeviceInfo) Reset()
func (*DeviceInfo) String ¶
func (m *DeviceInfo) String() string
func (*DeviceInfo) XXX_DiscardUnknown ¶
func (m *DeviceInfo) XXX_DiscardUnknown()
func (*DeviceInfo) XXX_Marshal ¶
func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceInfo) XXX_Merge ¶
func (m *DeviceInfo) XXX_Merge(src proto.Message)
func (*DeviceInfo) XXX_Size ¶
func (m *DeviceInfo) XXX_Size() int
func (*DeviceInfo) XXX_Unmarshal ¶
func (m *DeviceInfo) XXX_Unmarshal(b []byte) error
type DmClient ¶
type DmClient interface { LoginAuth(ctx context.Context, in *LoginAuthReq, opts ...grpc.CallOption) (*Response, error) AccessAuth(ctx context.Context, in *AccessAuthReq, opts ...grpc.CallOption) (*Response, error) ManageDevice(ctx context.Context, in *ManageDeviceReq, opts ...grpc.CallOption) (*DeviceInfo, error) ManageProduct(ctx context.Context, in *ManageProductReq, opts ...grpc.CallOption) (*ProductInfo, error) GetProductInfo(ctx context.Context, in *GetProductInfoReq, opts ...grpc.CallOption) (*GetProductInfoResp, error) GetDeviceInfo(ctx context.Context, in *GetDeviceInfoReq, opts ...grpc.CallOption) (*GetDeviceInfoResp, error) GetDeviceData(ctx context.Context, in *GetDeviceDataReq, opts ...grpc.CallOption) (*GetDeviceDataResp, error) GetDeviceLog(ctx context.Context, in *GetDeviceLogReq, opts ...grpc.CallOption) (*GetDeviceLogResp, error) SendAction(ctx context.Context, in *SendActionReq, opts ...grpc.CallOption) (*SendActionResp, error) SendProperty(ctx context.Context, in *SendPropertyReq, opts ...grpc.CallOption) (*SendPropertyResp, error) }
DmClient is the client API for Dm service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDmClient ¶
func NewDmClient(cc *grpc.ClientConn) DmClient
type DmServer ¶
type DmServer interface { LoginAuth(context.Context, *LoginAuthReq) (*Response, error) AccessAuth(context.Context, *AccessAuthReq) (*Response, error) ManageDevice(context.Context, *ManageDeviceReq) (*DeviceInfo, error) ManageProduct(context.Context, *ManageProductReq) (*ProductInfo, error) GetProductInfo(context.Context, *GetProductInfoReq) (*GetProductInfoResp, error) GetDeviceInfo(context.Context, *GetDeviceInfoReq) (*GetDeviceInfoResp, error) GetDeviceData(context.Context, *GetDeviceDataReq) (*GetDeviceDataResp, error) GetDeviceLog(context.Context, *GetDeviceLogReq) (*GetDeviceLogResp, error) SendAction(context.Context, *SendActionReq) (*SendActionResp, error) SendProperty(context.Context, *SendPropertyReq) (*SendPropertyResp, error) }
DmServer is the server API for Dm service.
type GetDeviceDataReq ¶
type GetDeviceDataReq struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` ProductID string `protobuf:"bytes,3,opt,name=productID,proto3" json:"productID,omitempty"` FieldName string `protobuf:"bytes,4,opt,name=FieldName,proto3" json:"FieldName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
实时获取对应信息
func (*GetDeviceDataReq) Descriptor ¶
func (*GetDeviceDataReq) Descriptor() ([]byte, []int)
func (*GetDeviceDataReq) GetDeviceName ¶
func (m *GetDeviceDataReq) GetDeviceName() string
func (*GetDeviceDataReq) GetFieldName ¶
func (m *GetDeviceDataReq) GetFieldName() string
func (*GetDeviceDataReq) GetMethod ¶
func (m *GetDeviceDataReq) GetMethod() string
func (*GetDeviceDataReq) GetProductID ¶
func (m *GetDeviceDataReq) GetProductID() string
func (*GetDeviceDataReq) ProtoMessage ¶
func (*GetDeviceDataReq) ProtoMessage()
func (*GetDeviceDataReq) Reset ¶
func (m *GetDeviceDataReq) Reset()
func (*GetDeviceDataReq) String ¶
func (m *GetDeviceDataReq) String() string
func (*GetDeviceDataReq) XXX_DiscardUnknown ¶
func (m *GetDeviceDataReq) XXX_DiscardUnknown()
func (*GetDeviceDataReq) XXX_Marshal ¶
func (m *GetDeviceDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDeviceDataReq) XXX_Merge ¶
func (m *GetDeviceDataReq) XXX_Merge(src proto.Message)
func (*GetDeviceDataReq) XXX_Size ¶
func (m *GetDeviceDataReq) XXX_Size() int
func (*GetDeviceDataReq) XXX_Unmarshal ¶
func (m *GetDeviceDataReq) XXX_Unmarshal(b []byte) error
type GetDeviceDataResp ¶
type GetDeviceDataResp struct { Data []*DeviceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
实时获取对应信息
func (*GetDeviceDataResp) Descriptor ¶
func (*GetDeviceDataResp) Descriptor() ([]byte, []int)
func (*GetDeviceDataResp) GetData ¶
func (m *GetDeviceDataResp) GetData() []*DeviceData
func (*GetDeviceDataResp) ProtoMessage ¶
func (*GetDeviceDataResp) ProtoMessage()
func (*GetDeviceDataResp) Reset ¶
func (m *GetDeviceDataResp) Reset()
func (*GetDeviceDataResp) String ¶
func (m *GetDeviceDataResp) String() string
func (*GetDeviceDataResp) XXX_DiscardUnknown ¶
func (m *GetDeviceDataResp) XXX_DiscardUnknown()
func (*GetDeviceDataResp) XXX_Marshal ¶
func (m *GetDeviceDataResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDeviceDataResp) XXX_Merge ¶
func (m *GetDeviceDataResp) XXX_Merge(src proto.Message)
func (*GetDeviceDataResp) XXX_Size ¶
func (m *GetDeviceDataResp) XXX_Size() int
func (*GetDeviceDataResp) XXX_Unmarshal ¶
func (m *GetDeviceDataResp) XXX_Unmarshal(b []byte) error
type GetDeviceInfoReq ¶
type GetDeviceInfoReq struct { DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` ProductID string `protobuf:"bytes,2,opt,name=productID,proto3" json:"productID,omitempty"` Page *PageInfo `protobuf:"bytes,3,opt,name=page,proto3" json:"page,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetDeviceInfoReq) Descriptor ¶
func (*GetDeviceInfoReq) Descriptor() ([]byte, []int)
func (*GetDeviceInfoReq) GetDeviceName ¶
func (m *GetDeviceInfoReq) GetDeviceName() string
func (*GetDeviceInfoReq) GetPage ¶
func (m *GetDeviceInfoReq) GetPage() *PageInfo
func (*GetDeviceInfoReq) GetProductID ¶
func (m *GetDeviceInfoReq) GetProductID() string
func (*GetDeviceInfoReq) ProtoMessage ¶
func (*GetDeviceInfoReq) ProtoMessage()
func (*GetDeviceInfoReq) Reset ¶
func (m *GetDeviceInfoReq) Reset()
func (*GetDeviceInfoReq) String ¶
func (m *GetDeviceInfoReq) String() string
func (*GetDeviceInfoReq) XXX_DiscardUnknown ¶
func (m *GetDeviceInfoReq) XXX_DiscardUnknown()
func (*GetDeviceInfoReq) XXX_Marshal ¶
func (m *GetDeviceInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDeviceInfoReq) XXX_Merge ¶
func (m *GetDeviceInfoReq) XXX_Merge(src proto.Message)
func (*GetDeviceInfoReq) XXX_Size ¶
func (m *GetDeviceInfoReq) XXX_Size() int
func (*GetDeviceInfoReq) XXX_Unmarshal ¶
func (m *GetDeviceInfoReq) XXX_Unmarshal(b []byte) error
type GetDeviceInfoResp ¶
type GetDeviceInfoResp struct { Info []*DeviceInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetDeviceInfoResp) Descriptor ¶
func (*GetDeviceInfoResp) Descriptor() ([]byte, []int)
func (*GetDeviceInfoResp) GetInfo ¶
func (m *GetDeviceInfoResp) GetInfo() []*DeviceInfo
func (*GetDeviceInfoResp) GetTotal ¶
func (m *GetDeviceInfoResp) GetTotal() int64
func (*GetDeviceInfoResp) ProtoMessage ¶
func (*GetDeviceInfoResp) ProtoMessage()
func (*GetDeviceInfoResp) Reset ¶
func (m *GetDeviceInfoResp) Reset()
func (*GetDeviceInfoResp) String ¶
func (m *GetDeviceInfoResp) String() string
func (*GetDeviceInfoResp) XXX_DiscardUnknown ¶
func (m *GetDeviceInfoResp) XXX_DiscardUnknown()
func (*GetDeviceInfoResp) XXX_Marshal ¶
func (m *GetDeviceInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDeviceInfoResp) XXX_Merge ¶
func (m *GetDeviceInfoResp) XXX_Merge(src proto.Message)
func (*GetDeviceInfoResp) XXX_Size ¶
func (m *GetDeviceInfoResp) XXX_Size() int
func (*GetDeviceInfoResp) XXX_Unmarshal ¶
func (m *GetDeviceInfoResp) XXX_Unmarshal(b []byte) error
type GetDeviceLogReq ¶
type GetDeviceLogReq struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` ProductID string `protobuf:"bytes,3,opt,name=productID,proto3" json:"productID,omitempty"` FieldName string `protobuf:"bytes,4,opt,name=FieldName,proto3" json:"FieldName,omitempty"` TimeStart int64 `protobuf:"varint,5,opt,name=timeStart,proto3" json:"timeStart,omitempty"` TimeEnd int64 `protobuf:"varint,6,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"` Limit int64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
获取对应日志信息
func (*GetDeviceLogReq) Descriptor ¶
func (*GetDeviceLogReq) Descriptor() ([]byte, []int)
func (*GetDeviceLogReq) GetDeviceName ¶
func (m *GetDeviceLogReq) GetDeviceName() string
func (*GetDeviceLogReq) GetFieldName ¶
func (m *GetDeviceLogReq) GetFieldName() string
func (*GetDeviceLogReq) GetLimit ¶
func (m *GetDeviceLogReq) GetLimit() int64
func (*GetDeviceLogReq) GetMethod ¶
func (m *GetDeviceLogReq) GetMethod() string
func (*GetDeviceLogReq) GetProductID ¶
func (m *GetDeviceLogReq) GetProductID() string
func (*GetDeviceLogReq) GetTimeEnd ¶
func (m *GetDeviceLogReq) GetTimeEnd() int64
func (*GetDeviceLogReq) GetTimeStart ¶
func (m *GetDeviceLogReq) GetTimeStart() int64
func (*GetDeviceLogReq) ProtoMessage ¶
func (*GetDeviceLogReq) ProtoMessage()
func (*GetDeviceLogReq) Reset ¶
func (m *GetDeviceLogReq) Reset()
func (*GetDeviceLogReq) String ¶
func (m *GetDeviceLogReq) String() string
func (*GetDeviceLogReq) XXX_DiscardUnknown ¶
func (m *GetDeviceLogReq) XXX_DiscardUnknown()
func (*GetDeviceLogReq) XXX_Marshal ¶
func (m *GetDeviceLogReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDeviceLogReq) XXX_Merge ¶
func (m *GetDeviceLogReq) XXX_Merge(src proto.Message)
func (*GetDeviceLogReq) XXX_Size ¶
func (m *GetDeviceLogReq) XXX_Size() int
func (*GetDeviceLogReq) XXX_Unmarshal ¶
func (m *GetDeviceLogReq) XXX_Unmarshal(b []byte) error
type GetDeviceLogResp ¶
type GetDeviceLogResp struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Data []*DeviceData `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
获取对应日志信息
func (*GetDeviceLogResp) Descriptor ¶
func (*GetDeviceLogResp) Descriptor() ([]byte, []int)
func (*GetDeviceLogResp) GetData ¶
func (m *GetDeviceLogResp) GetData() []*DeviceData
func (*GetDeviceLogResp) GetTotal ¶
func (m *GetDeviceLogResp) GetTotal() int64
func (*GetDeviceLogResp) ProtoMessage ¶
func (*GetDeviceLogResp) ProtoMessage()
func (*GetDeviceLogResp) Reset ¶
func (m *GetDeviceLogResp) Reset()
func (*GetDeviceLogResp) String ¶
func (m *GetDeviceLogResp) String() string
func (*GetDeviceLogResp) XXX_DiscardUnknown ¶
func (m *GetDeviceLogResp) XXX_DiscardUnknown()
func (*GetDeviceLogResp) XXX_Marshal ¶
func (m *GetDeviceLogResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDeviceLogResp) XXX_Merge ¶
func (m *GetDeviceLogResp) XXX_Merge(src proto.Message)
func (*GetDeviceLogResp) XXX_Size ¶
func (m *GetDeviceLogResp) XXX_Size() int
func (*GetDeviceLogResp) XXX_Unmarshal ¶
func (m *GetDeviceLogResp) XXX_Unmarshal(b []byte) error
type GetProductInfoReq ¶
type GetProductInfoReq struct { ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` Page *PageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetProductInfoReq) Descriptor ¶
func (*GetProductInfoReq) Descriptor() ([]byte, []int)
func (*GetProductInfoReq) GetPage ¶
func (m *GetProductInfoReq) GetPage() *PageInfo
func (*GetProductInfoReq) GetProductID ¶
func (m *GetProductInfoReq) GetProductID() string
func (*GetProductInfoReq) ProtoMessage ¶
func (*GetProductInfoReq) ProtoMessage()
func (*GetProductInfoReq) Reset ¶
func (m *GetProductInfoReq) Reset()
func (*GetProductInfoReq) String ¶
func (m *GetProductInfoReq) String() string
func (*GetProductInfoReq) XXX_DiscardUnknown ¶
func (m *GetProductInfoReq) XXX_DiscardUnknown()
func (*GetProductInfoReq) XXX_Marshal ¶
func (m *GetProductInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetProductInfoReq) XXX_Merge ¶
func (m *GetProductInfoReq) XXX_Merge(src proto.Message)
func (*GetProductInfoReq) XXX_Size ¶
func (m *GetProductInfoReq) XXX_Size() int
func (*GetProductInfoReq) XXX_Unmarshal ¶
func (m *GetProductInfoReq) XXX_Unmarshal(b []byte) error
type GetProductInfoResp ¶
type GetProductInfoResp struct { Info []*ProductInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetProductInfoResp) Descriptor ¶
func (*GetProductInfoResp) Descriptor() ([]byte, []int)
func (*GetProductInfoResp) GetInfo ¶
func (m *GetProductInfoResp) GetInfo() []*ProductInfo
func (*GetProductInfoResp) GetTotal ¶
func (m *GetProductInfoResp) GetTotal() int64
func (*GetProductInfoResp) ProtoMessage ¶
func (*GetProductInfoResp) ProtoMessage()
func (*GetProductInfoResp) Reset ¶
func (m *GetProductInfoResp) Reset()
func (*GetProductInfoResp) String ¶
func (m *GetProductInfoResp) String() string
func (*GetProductInfoResp) XXX_DiscardUnknown ¶
func (m *GetProductInfoResp) XXX_DiscardUnknown()
func (*GetProductInfoResp) XXX_Marshal ¶
func (m *GetProductInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetProductInfoResp) XXX_Merge ¶
func (m *GetProductInfoResp) XXX_Merge(src proto.Message)
func (*GetProductInfoResp) XXX_Size ¶
func (m *GetProductInfoResp) XXX_Size() int
func (*GetProductInfoResp) XXX_Unmarshal ¶
func (m *GetProductInfoResp) XXX_Unmarshal(b []byte) error
type LoginAuthReq ¶
type LoginAuthReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` ClientID string `protobuf:"bytes,3,opt,name=clientID,proto3" json:"clientID,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` Certificate []byte `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
下面是设备管理模块的消息
func (*LoginAuthReq) Descriptor ¶
func (*LoginAuthReq) Descriptor() ([]byte, []int)
func (*LoginAuthReq) GetCertificate ¶
func (m *LoginAuthReq) GetCertificate() []byte
func (*LoginAuthReq) GetClientID ¶
func (m *LoginAuthReq) GetClientID() string
func (*LoginAuthReq) GetIp ¶
func (m *LoginAuthReq) GetIp() string
func (*LoginAuthReq) GetPassword ¶
func (m *LoginAuthReq) GetPassword() string
func (*LoginAuthReq) GetUsername ¶
func (m *LoginAuthReq) GetUsername() string
func (*LoginAuthReq) ProtoMessage ¶
func (*LoginAuthReq) ProtoMessage()
func (*LoginAuthReq) Reset ¶
func (m *LoginAuthReq) Reset()
func (*LoginAuthReq) String ¶
func (m *LoginAuthReq) String() string
func (*LoginAuthReq) XXX_DiscardUnknown ¶
func (m *LoginAuthReq) XXX_DiscardUnknown()
func (*LoginAuthReq) XXX_Marshal ¶
func (m *LoginAuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginAuthReq) XXX_Merge ¶
func (m *LoginAuthReq) XXX_Merge(src proto.Message)
func (*LoginAuthReq) XXX_Size ¶
func (m *LoginAuthReq) XXX_Size() int
func (*LoginAuthReq) XXX_Unmarshal ¶
func (m *LoginAuthReq) XXX_Unmarshal(b []byte) error
type LoginDevice ¶
type LoginDevice struct { ClientID string //clientID ProductID string //产品id DeviceName string //设备名称 SdkAppID int64 //appid 直接填 12010126 ConnID string //随机6字节字符串 帮助查bug Expiry int64 //过期时间 unix时间戳 }
func GetClientIDInfo ¶
func GetClientIDInfo(ClientID string) (*LoginDevice, error)
func GetLoginDevice ¶
func GetLoginDevice(userName string) (*LoginDevice, error)
type ManResp ¶
type ManResp struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ManResp) Descriptor ¶
func (*ManResp) ProtoMessage ¶
func (*ManResp) ProtoMessage()
func (*ManResp) XXX_DiscardUnknown ¶
func (m *ManResp) XXX_DiscardUnknown()
func (*ManResp) XXX_Marshal ¶
func (*ManResp) XXX_Unmarshal ¶
type ManageDeviceReq ¶
type ManageDeviceReq struct { Opt int64 `protobuf:"varint,1,opt,name=opt,proto3" json:"opt,omitempty"` Info *DeviceInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ManageDeviceReq) Descriptor ¶
func (*ManageDeviceReq) Descriptor() ([]byte, []int)
func (*ManageDeviceReq) GetInfo ¶
func (m *ManageDeviceReq) GetInfo() *DeviceInfo
func (*ManageDeviceReq) GetOpt ¶
func (m *ManageDeviceReq) GetOpt() int64
func (*ManageDeviceReq) ProtoMessage ¶
func (*ManageDeviceReq) ProtoMessage()
func (*ManageDeviceReq) Reset ¶
func (m *ManageDeviceReq) Reset()
func (*ManageDeviceReq) String ¶
func (m *ManageDeviceReq) String() string
func (*ManageDeviceReq) XXX_DiscardUnknown ¶
func (m *ManageDeviceReq) XXX_DiscardUnknown()
func (*ManageDeviceReq) XXX_Marshal ¶
func (m *ManageDeviceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManageDeviceReq) XXX_Merge ¶
func (m *ManageDeviceReq) XXX_Merge(src proto.Message)
func (*ManageDeviceReq) XXX_Size ¶
func (m *ManageDeviceReq) XXX_Size() int
func (*ManageDeviceReq) XXX_Unmarshal ¶
func (m *ManageDeviceReq) XXX_Unmarshal(b []byte) error
type ManageProductReq ¶
type ManageProductReq struct { Opt int64 `protobuf:"varint,1,opt,name=opt,proto3" json:"opt,omitempty"` Info *ProductInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ManageProductReq) Descriptor ¶
func (*ManageProductReq) Descriptor() ([]byte, []int)
func (*ManageProductReq) GetInfo ¶
func (m *ManageProductReq) GetInfo() *ProductInfo
func (*ManageProductReq) GetOpt ¶
func (m *ManageProductReq) GetOpt() int64
func (*ManageProductReq) ProtoMessage ¶
func (*ManageProductReq) ProtoMessage()
func (*ManageProductReq) Reset ¶
func (m *ManageProductReq) Reset()
func (*ManageProductReq) String ¶
func (m *ManageProductReq) String() string
func (*ManageProductReq) XXX_DiscardUnknown ¶
func (m *ManageProductReq) XXX_DiscardUnknown()
func (*ManageProductReq) XXX_Marshal ¶
func (m *ManageProductReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManageProductReq) XXX_Merge ¶
func (m *ManageProductReq) XXX_Merge(src proto.Message)
func (*ManageProductReq) XXX_Size ¶
func (m *ManageProductReq) XXX_Size() int
func (*ManageProductReq) XXX_Unmarshal ¶
func (m *ManageProductReq) XXX_Unmarshal(b []byte) error
type PageInfo ¶
type PageInfo struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PageInfo) Descriptor ¶
func (*PageInfo) GetPageSize ¶
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) XXX_DiscardUnknown ¶
func (m *PageInfo) XXX_DiscardUnknown()
func (*PageInfo) XXX_Marshal ¶
func (*PageInfo) XXX_Unmarshal ¶
type ProductInfo ¶
type ProductInfo struct { CreatedTime int64 `protobuf:"varint,1,opt,name=createdTime,proto3" json:"createdTime,omitempty"` ProductID string `protobuf:"bytes,2,opt,name=productID,proto3" json:"productID,omitempty"` ProductName string `protobuf:"bytes,3,opt,name=productName,proto3" json:"productName,omitempty"` AuthMode int64 `protobuf:"varint,4,opt,name=authMode,proto3" json:"authMode,omitempty"` DeviceType int64 `protobuf:"varint,5,opt,name=deviceType,proto3" json:"deviceType,omitempty"` CategoryID int64 `protobuf:"varint,6,opt,name=categoryID,proto3" json:"categoryID,omitempty"` NetType int64 `protobuf:"varint,7,opt,name=netType,proto3" json:"netType,omitempty"` DataProto int64 `protobuf:"varint,8,opt,name=dataProto,proto3" json:"dataProto,omitempty"` AutoRegister int64 `protobuf:"varint,9,opt,name=autoRegister,proto3" json:"autoRegister,omitempty"` Secret string `protobuf:"bytes,10,opt,name=secret,proto3" json:"secret,omitempty"` Template *wrapperspb.StringValue `protobuf:"bytes,11,opt,name=template,proto3" json:"template,omitempty"` Description *wrapperspb.StringValue `protobuf:"bytes,12,opt,name=description,proto3" json:"description,omitempty"` DevStatus *wrapperspb.StringValue `protobuf:"bytes,13,opt,name=devStatus,proto3" json:"devStatus,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProductInfo) Descriptor ¶
func (*ProductInfo) Descriptor() ([]byte, []int)
func (*ProductInfo) GetAuthMode ¶
func (m *ProductInfo) GetAuthMode() int64
func (*ProductInfo) GetAutoRegister ¶
func (m *ProductInfo) GetAutoRegister() int64
func (*ProductInfo) GetCategoryID ¶
func (m *ProductInfo) GetCategoryID() int64
func (*ProductInfo) GetCreatedTime ¶
func (m *ProductInfo) GetCreatedTime() int64
func (*ProductInfo) GetDataProto ¶
func (m *ProductInfo) GetDataProto() int64
func (*ProductInfo) GetDescription ¶
func (m *ProductInfo) GetDescription() *wrapperspb.StringValue
func (*ProductInfo) GetDevStatus ¶
func (m *ProductInfo) GetDevStatus() *wrapperspb.StringValue
func (*ProductInfo) GetDeviceType ¶
func (m *ProductInfo) GetDeviceType() int64
func (*ProductInfo) GetNetType ¶
func (m *ProductInfo) GetNetType() int64
func (*ProductInfo) GetProductID ¶
func (m *ProductInfo) GetProductID() string
func (*ProductInfo) GetProductName ¶
func (m *ProductInfo) GetProductName() string
func (*ProductInfo) GetSecret ¶
func (m *ProductInfo) GetSecret() string
func (*ProductInfo) GetTemplate ¶
func (m *ProductInfo) GetTemplate() *wrapperspb.StringValue
func (*ProductInfo) ProtoMessage ¶
func (*ProductInfo) ProtoMessage()
func (*ProductInfo) Reset ¶
func (m *ProductInfo) Reset()
func (*ProductInfo) String ¶
func (m *ProductInfo) String() string
func (*ProductInfo) XXX_DiscardUnknown ¶
func (m *ProductInfo) XXX_DiscardUnknown()
func (*ProductInfo) XXX_Marshal ¶
func (m *ProductInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProductInfo) XXX_Merge ¶
func (m *ProductInfo) XXX_Merge(src proto.Message)
func (*ProductInfo) XXX_Size ¶
func (m *ProductInfo) XXX_Size() int
func (*ProductInfo) XXX_Unmarshal ¶
func (m *ProductInfo) XXX_Unmarshal(b []byte) error
type Response ¶
type Response struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type SendActionReq ¶
type SendActionReq struct { ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` ActionId string `protobuf:"bytes,3,opt,name=actionId,proto3" json:"actionId,omitempty"` InputParams string `protobuf:"bytes,4,opt,name=inputParams,proto3" json:"inputParams,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendActionReq) Descriptor ¶
func (*SendActionReq) Descriptor() ([]byte, []int)
func (*SendActionReq) GetActionId ¶
func (m *SendActionReq) GetActionId() string
func (*SendActionReq) GetDeviceName ¶
func (m *SendActionReq) GetDeviceName() string
func (*SendActionReq) GetInputParams ¶
func (m *SendActionReq) GetInputParams() string
func (*SendActionReq) GetProductID ¶
func (m *SendActionReq) GetProductID() string
func (*SendActionReq) ProtoMessage ¶
func (*SendActionReq) ProtoMessage()
func (*SendActionReq) Reset ¶
func (m *SendActionReq) Reset()
func (*SendActionReq) String ¶
func (m *SendActionReq) String() string
func (*SendActionReq) XXX_DiscardUnknown ¶
func (m *SendActionReq) XXX_DiscardUnknown()
func (*SendActionReq) XXX_Marshal ¶
func (m *SendActionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendActionReq) XXX_Merge ¶
func (m *SendActionReq) XXX_Merge(src proto.Message)
func (*SendActionReq) XXX_Size ¶
func (m *SendActionReq) XXX_Size() int
func (*SendActionReq) XXX_Unmarshal ¶
func (m *SendActionReq) XXX_Unmarshal(b []byte) error
type SendActionResp ¶
type SendActionResp struct { ClientToken string `protobuf:"bytes,1,opt,name=clientToken,proto3" json:"clientToken,omitempty"` OutputParams string `protobuf:"bytes,2,opt,name=outputParams,proto3" json:"outputParams,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Code int64 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendActionResp) Descriptor ¶
func (*SendActionResp) Descriptor() ([]byte, []int)
func (*SendActionResp) GetClientToken ¶
func (m *SendActionResp) GetClientToken() string
func (*SendActionResp) GetCode ¶
func (m *SendActionResp) GetCode() int64
func (*SendActionResp) GetOutputParams ¶
func (m *SendActionResp) GetOutputParams() string
func (*SendActionResp) GetStatus ¶
func (m *SendActionResp) GetStatus() string
func (*SendActionResp) ProtoMessage ¶
func (*SendActionResp) ProtoMessage()
func (*SendActionResp) Reset ¶
func (m *SendActionResp) Reset()
func (*SendActionResp) String ¶
func (m *SendActionResp) String() string
func (*SendActionResp) XXX_DiscardUnknown ¶
func (m *SendActionResp) XXX_DiscardUnknown()
func (*SendActionResp) XXX_Marshal ¶
func (m *SendActionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendActionResp) XXX_Merge ¶
func (m *SendActionResp) XXX_Merge(src proto.Message)
func (*SendActionResp) XXX_Size ¶
func (m *SendActionResp) XXX_Size() int
func (*SendActionResp) XXX_Unmarshal ¶
func (m *SendActionResp) XXX_Unmarshal(b []byte) error
type SendPropertyReq ¶
type SendPropertyReq struct { ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendPropertyReq) Descriptor ¶
func (*SendPropertyReq) Descriptor() ([]byte, []int)
func (*SendPropertyReq) GetData ¶
func (m *SendPropertyReq) GetData() string
func (*SendPropertyReq) GetDeviceName ¶
func (m *SendPropertyReq) GetDeviceName() string
func (*SendPropertyReq) GetMethod ¶
func (m *SendPropertyReq) GetMethod() string
func (*SendPropertyReq) GetProductID ¶
func (m *SendPropertyReq) GetProductID() string
func (*SendPropertyReq) ProtoMessage ¶
func (*SendPropertyReq) ProtoMessage()
func (*SendPropertyReq) Reset ¶
func (m *SendPropertyReq) Reset()
func (*SendPropertyReq) String ¶
func (m *SendPropertyReq) String() string
func (*SendPropertyReq) XXX_DiscardUnknown ¶
func (m *SendPropertyReq) XXX_DiscardUnknown()
func (*SendPropertyReq) XXX_Marshal ¶
func (m *SendPropertyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendPropertyReq) XXX_Merge ¶
func (m *SendPropertyReq) XXX_Merge(src proto.Message)
func (*SendPropertyReq) XXX_Size ¶
func (m *SendPropertyReq) XXX_Size() int
func (*SendPropertyReq) XXX_Unmarshal ¶
func (m *SendPropertyReq) XXX_Unmarshal(b []byte) error
type SendPropertyResp ¶
type SendPropertyResp struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Code int64 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendPropertyResp) Descriptor ¶
func (*SendPropertyResp) Descriptor() ([]byte, []int)
func (*SendPropertyResp) GetCode ¶
func (m *SendPropertyResp) GetCode() int64
func (*SendPropertyResp) GetData ¶
func (m *SendPropertyResp) GetData() string
func (*SendPropertyResp) GetStatus ¶
func (m *SendPropertyResp) GetStatus() string
func (*SendPropertyResp) ProtoMessage ¶
func (*SendPropertyResp) ProtoMessage()
func (*SendPropertyResp) Reset ¶
func (m *SendPropertyResp) Reset()
func (*SendPropertyResp) String ¶
func (m *SendPropertyResp) String() string
func (*SendPropertyResp) XXX_DiscardUnknown ¶
func (m *SendPropertyResp) XXX_DiscardUnknown()
func (*SendPropertyResp) XXX_Marshal ¶
func (m *SendPropertyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendPropertyResp) XXX_Merge ¶
func (m *SendPropertyResp) XXX_Merge(src proto.Message)
func (*SendPropertyResp) XXX_Size ¶
func (m *SendPropertyResp) XXX_Size() int
func (*SendPropertyResp) XXX_Unmarshal ¶
func (m *SendPropertyResp) XXX_Unmarshal(b []byte) error
type UnimplementedDmServer ¶
type UnimplementedDmServer struct { }
UnimplementedDmServer can be embedded to have forward compatible implementations.
func (*UnimplementedDmServer) AccessAuth ¶
func (*UnimplementedDmServer) AccessAuth(ctx context.Context, req *AccessAuthReq) (*Response, error)
func (*UnimplementedDmServer) GetDeviceData ¶
func (*UnimplementedDmServer) GetDeviceData(ctx context.Context, req *GetDeviceDataReq) (*GetDeviceDataResp, error)
func (*UnimplementedDmServer) GetDeviceInfo ¶
func (*UnimplementedDmServer) GetDeviceInfo(ctx context.Context, req *GetDeviceInfoReq) (*GetDeviceInfoResp, error)
func (*UnimplementedDmServer) GetDeviceLog ¶
func (*UnimplementedDmServer) GetDeviceLog(ctx context.Context, req *GetDeviceLogReq) (*GetDeviceLogResp, error)
func (*UnimplementedDmServer) GetProductInfo ¶
func (*UnimplementedDmServer) GetProductInfo(ctx context.Context, req *GetProductInfoReq) (*GetProductInfoResp, error)
func (*UnimplementedDmServer) LoginAuth ¶
func (*UnimplementedDmServer) LoginAuth(ctx context.Context, req *LoginAuthReq) (*Response, error)
func (*UnimplementedDmServer) ManageDevice ¶
func (*UnimplementedDmServer) ManageDevice(ctx context.Context, req *ManageDeviceReq) (*DeviceInfo, error)
func (*UnimplementedDmServer) ManageProduct ¶
func (*UnimplementedDmServer) ManageProduct(ctx context.Context, req *ManageProductReq) (*ProductInfo, error)
func (*UnimplementedDmServer) SendAction ¶
func (*UnimplementedDmServer) SendAction(ctx context.Context, req *SendActionReq) (*SendActionResp, error)
func (*UnimplementedDmServer) SendProperty ¶
func (*UnimplementedDmServer) SendProperty(ctx context.Context, req *SendPropertyReq) (*SendPropertyResp, error)
Click to show internal directories.
Click to hide internal directories.