dm

package
v0.0.0-...-5932f04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRODUCTID_LEN = 11
)

Variables

This section is empty.

Functions

func GetInt64ProductID

func GetInt64ProductID(id string) int64

func GetStrProductID

func GetStrProductID(id int64) string

字符串类型的产品id有11个字节,不够的需要在前面补0

func RegisterDmServer

func RegisterDmServer(s *grpc.Server, srv DmServer)

Types

type AUTH

type AUTH = int64
const (
	AUTH_PWD  AUTH = 1 //账密认证
	AUTH_CERT AUTH = 2 //证书认证
)

type AUTO_REG

type AUTO_REG = int64
const (
	AUTO_REG_CLOSE AUTO_REG = 1 //关闭
	AUTO_REG_OPEN  AUTO_REG = 2 //打开
	AUTO_REG_AUTO  AUTO_REG = 3 //打开并自动创建设备
)

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 DATA

type DATA = int64
const (
	DATA_DATA_UNKNOWN DATA = 0 //禁止为此参数
	DATA_CUSTOM       DATA = 1 //自定义
	DATA_TEMPLATE     DATA = 2 //数据模板
)

type DEV

type DEV = int64
const (
	DEV_DEVICE  DEV = 1 //设备
	DEV_GATEWAY DEV = 2 //网关
	DEV_SUBSET  DEV = 3 //子设备
)

type DeviceData

type DeviceData struct {
	Timestamp            int64    `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	DataID               string   `protobuf:"bytes,3,opt,name=dataID,proto3" json:"dataID,omitempty"`
	GetValue             string   `protobuf:"bytes,4,opt,name=getValue,proto3" json:"getValue,omitempty"`
	SendValue            string   `protobuf:"bytes,5,opt,name=sendValue,proto3" json:"sendValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

设备的日志数据

func (*DeviceData) Descriptor

func (*DeviceData) Descriptor() ([]byte, []int)

func (*DeviceData) GetDataID

func (m *DeviceData) GetDataID() string

func (*DeviceData) GetGetValue

func (m *DeviceData) GetGetValue() string

func (*DeviceData) GetSendValue

func (m *DeviceData) GetSendValue() string

func (*DeviceData) GetTimestamp

func (m *DeviceData) GetTimestamp() int64

func (*DeviceData) GetType

func (m *DeviceData) GetType() string

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 DeviceDescribeLog

type DeviceDescribeLog struct {
	Timestamp            int64    `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Action               string   `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	RequestID            string   `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	TranceID             string   `protobuf:"bytes,4,opt,name=tranceID,proto3" json:"tranceID,omitempty"`
	Topic                string   `protobuf:"bytes,5,opt,name=topic,proto3" json:"topic,omitempty"`
	Content              string   `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	ResultType           int64    `protobuf:"varint,7,opt,name=resultType,proto3" json:"resultType,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

设备的日志数据

func (*DeviceDescribeLog) Descriptor

func (*DeviceDescribeLog) Descriptor() ([]byte, []int)

func (*DeviceDescribeLog) GetAction

func (m *DeviceDescribeLog) GetAction() string

func (*DeviceDescribeLog) GetContent

func (m *DeviceDescribeLog) GetContent() string

func (*DeviceDescribeLog) GetRequestID

func (m *DeviceDescribeLog) GetRequestID() string

func (*DeviceDescribeLog) GetResultType

func (m *DeviceDescribeLog) GetResultType() int64

func (*DeviceDescribeLog) GetTimestamp

func (m *DeviceDescribeLog) GetTimestamp() int64

func (*DeviceDescribeLog) GetTopic

func (m *DeviceDescribeLog) GetTopic() string

func (*DeviceDescribeLog) GetTranceID

func (m *DeviceDescribeLog) GetTranceID() string

func (*DeviceDescribeLog) ProtoMessage

func (*DeviceDescribeLog) ProtoMessage()

func (*DeviceDescribeLog) Reset

func (m *DeviceDescribeLog) Reset()

func (*DeviceDescribeLog) String

func (m *DeviceDescribeLog) String() string

func (*DeviceDescribeLog) XXX_DiscardUnknown

func (m *DeviceDescribeLog) XXX_DiscardUnknown()

func (*DeviceDescribeLog) XXX_Marshal

func (m *DeviceDescribeLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeviceDescribeLog) XXX_Merge

func (m *DeviceDescribeLog) XXX_Merge(src proto.Message)

func (*DeviceDescribeLog) XXX_Size

func (m *DeviceDescribeLog) XXX_Size() int

func (*DeviceDescribeLog) XXX_Unmarshal

func (m *DeviceDescribeLog) 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)
	//产品模板管理
	ManageProductTemplate(ctx context.Context, in *ManageProductTemplateReq, opts ...grpc.CallOption) (*ProductTemplate, error)
	//获取产品信息
	GetProductTemplate(ctx context.Context, in *GetProductTemplateReq, opts ...grpc.CallOption) (*ProductTemplate, error)
	//获取设备信息
	GetDeviceInfo(ctx context.Context, in *GetDeviceInfoReq, opts ...grpc.CallOption) (*GetDeviceInfoResp, error)
	//获取设备调试信息记录登入登出,操作
	GetDeviceDescribeLog(ctx context.Context, in *GetDeviceDescribeLogReq, opts ...grpc.CallOption) (*GetDeviceDescribeLogResp, error)
	//获取设备数据信息
	GetDeviceData(ctx context.Context, in *GetDeviceDataReq, opts ...grpc.CallOption) (*GetDeviceDataResp, error)
	//同步调用设备行为
	SendAction(ctx context.Context, in *SendActionReq, opts ...grpc.CallOption) (*SendActionResp, error)
	//同步调用设备属性
	SendProperty(ctx context.Context, in *SendPropertyReq, opts ...grpc.CallOption) (*SendPropertyResp, error)
	//设备端发送信息
	SendDeviceMsg(ctx context.Context, in *SendDeviceMsgReq, opts ...grpc.CallOption) (*SendDeviceMsgResp, 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)
	//产品模板管理
	ManageProductTemplate(context.Context, *ManageProductTemplateReq) (*ProductTemplate, error)
	//获取产品信息
	GetProductTemplate(context.Context, *GetProductTemplateReq) (*ProductTemplate, error)
	//获取设备信息
	GetDeviceInfo(context.Context, *GetDeviceInfoReq) (*GetDeviceInfoResp, error)
	//获取设备调试信息记录登入登出,操作
	GetDeviceDescribeLog(context.Context, *GetDeviceDescribeLogReq) (*GetDeviceDescribeLogResp, error)
	//获取设备数据信息
	GetDeviceData(context.Context, *GetDeviceDataReq) (*GetDeviceDataResp, error)
	//同步调用设备行为
	SendAction(context.Context, *SendActionReq) (*SendActionResp, error)
	//同步调用设备属性
	SendProperty(context.Context, *SendPropertyReq) (*SendPropertyResp, error)
	//设备端发送信息
	SendDeviceMsg(context.Context, *SendDeviceMsgReq) (*SendDeviceMsgResp, 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"`
	DataID               string   `protobuf:"bytes,4,opt,name=dataID,proto3" json:"dataID,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 (*GetDeviceDataReq) Descriptor

func (*GetDeviceDataReq) Descriptor() ([]byte, []int)

func (*GetDeviceDataReq) GetDataID

func (m *GetDeviceDataReq) GetDataID() string

func (*GetDeviceDataReq) GetDeviceName

func (m *GetDeviceDataReq) GetDeviceName() string

func (*GetDeviceDataReq) GetLimit

func (m *GetDeviceDataReq) GetLimit() int64

func (*GetDeviceDataReq) GetMethod

func (m *GetDeviceDataReq) GetMethod() string

func (*GetDeviceDataReq) GetProductID

func (m *GetDeviceDataReq) GetProductID() string

func (*GetDeviceDataReq) GetTimeEnd

func (m *GetDeviceDataReq) GetTimeEnd() int64

func (*GetDeviceDataReq) GetTimeStart

func (m *GetDeviceDataReq) GetTimeStart() int64

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 {
	Total                int64         `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List                 []*DeviceData `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

获取对应日志信息

func (*GetDeviceDataResp) Descriptor

func (*GetDeviceDataResp) Descriptor() ([]byte, []int)

func (*GetDeviceDataResp) GetList

func (m *GetDeviceDataResp) GetList() []*DeviceData

func (*GetDeviceDataResp) GetTotal

func (m *GetDeviceDataResp) GetTotal() int64

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 GetDeviceDescribeLogReq

type GetDeviceDescribeLogReq 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"`
	TimeStart            int64    `protobuf:"varint,3,opt,name=timeStart,proto3" json:"timeStart,omitempty"`
	TimeEnd              int64    `protobuf:"varint,4,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"`
	Limit                int64    `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

实时获取对应信息

func (*GetDeviceDescribeLogReq) Descriptor

func (*GetDeviceDescribeLogReq) Descriptor() ([]byte, []int)

func (*GetDeviceDescribeLogReq) GetDeviceName

func (m *GetDeviceDescribeLogReq) GetDeviceName() string

func (*GetDeviceDescribeLogReq) GetLimit

func (m *GetDeviceDescribeLogReq) GetLimit() int64

func (*GetDeviceDescribeLogReq) GetProductID

func (m *GetDeviceDescribeLogReq) GetProductID() string

func (*GetDeviceDescribeLogReq) GetTimeEnd

func (m *GetDeviceDescribeLogReq) GetTimeEnd() int64

func (*GetDeviceDescribeLogReq) GetTimeStart

func (m *GetDeviceDescribeLogReq) GetTimeStart() int64

func (*GetDeviceDescribeLogReq) ProtoMessage

func (*GetDeviceDescribeLogReq) ProtoMessage()

func (*GetDeviceDescribeLogReq) Reset

func (m *GetDeviceDescribeLogReq) Reset()

func (*GetDeviceDescribeLogReq) String

func (m *GetDeviceDescribeLogReq) String() string

func (*GetDeviceDescribeLogReq) XXX_DiscardUnknown

func (m *GetDeviceDescribeLogReq) XXX_DiscardUnknown()

func (*GetDeviceDescribeLogReq) XXX_Marshal

func (m *GetDeviceDescribeLogReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDeviceDescribeLogReq) XXX_Merge

func (m *GetDeviceDescribeLogReq) XXX_Merge(src proto.Message)

func (*GetDeviceDescribeLogReq) XXX_Size

func (m *GetDeviceDescribeLogReq) XXX_Size() int

func (*GetDeviceDescribeLogReq) XXX_Unmarshal

func (m *GetDeviceDescribeLogReq) XXX_Unmarshal(b []byte) error

type GetDeviceDescribeLogResp

type GetDeviceDescribeLogResp struct {
	List                 []*DeviceDescribeLog `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

实时获取对应信息

func (*GetDeviceDescribeLogResp) Descriptor

func (*GetDeviceDescribeLogResp) Descriptor() ([]byte, []int)

func (*GetDeviceDescribeLogResp) GetList

func (*GetDeviceDescribeLogResp) ProtoMessage

func (*GetDeviceDescribeLogResp) ProtoMessage()

func (*GetDeviceDescribeLogResp) Reset

func (m *GetDeviceDescribeLogResp) Reset()

func (*GetDeviceDescribeLogResp) String

func (m *GetDeviceDescribeLogResp) String() string

func (*GetDeviceDescribeLogResp) XXX_DiscardUnknown

func (m *GetDeviceDescribeLogResp) XXX_DiscardUnknown()

func (*GetDeviceDescribeLogResp) XXX_Marshal

func (m *GetDeviceDescribeLogResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDeviceDescribeLogResp) XXX_Merge

func (m *GetDeviceDescribeLogResp) XXX_Merge(src proto.Message)

func (*GetDeviceDescribeLogResp) XXX_Size

func (m *GetDeviceDescribeLogResp) XXX_Size() int

func (*GetDeviceDescribeLogResp) XXX_Unmarshal

func (m *GetDeviceDescribeLogResp) 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 {
	List                 []*DeviceInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,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) GetList

func (m *GetDeviceInfoResp) GetList() []*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 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 {
	List                 []*ProductInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,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) GetList

func (m *GetProductInfoResp) GetList() []*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 GetProductTemplateReq

type GetProductTemplateReq struct {
	ProductID            string   `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetProductTemplateReq) Descriptor

func (*GetProductTemplateReq) Descriptor() ([]byte, []int)

func (*GetProductTemplateReq) GetProductID

func (m *GetProductTemplateReq) GetProductID() string

func (*GetProductTemplateReq) ProtoMessage

func (*GetProductTemplateReq) ProtoMessage()

func (*GetProductTemplateReq) Reset

func (m *GetProductTemplateReq) Reset()

func (*GetProductTemplateReq) String

func (m *GetProductTemplateReq) String() string

func (*GetProductTemplateReq) XXX_DiscardUnknown

func (m *GetProductTemplateReq) XXX_DiscardUnknown()

func (*GetProductTemplateReq) XXX_Marshal

func (m *GetProductTemplateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetProductTemplateReq) XXX_Merge

func (m *GetProductTemplateReq) XXX_Merge(src proto.Message)

func (*GetProductTemplateReq) XXX_Size

func (m *GetProductTemplateReq) XXX_Size() int

func (*GetProductTemplateReq) XXX_Unmarshal

func (m *GetProductTemplateReq) XXX_Unmarshal(b []byte) error

type LOG_LEVEL

type LOG_LEVEL = int64
const (
	LOG_CLOSE LOG_LEVEL = 1 //关闭
	LOG_ERROR LOG_LEVEL = 2 //错误
	LOG_WARN  LOG_LEVEL = 3 //告警
	LOG_INFO  LOG_LEVEL = 4 //信息
	LOG_DEBUG LOG_LEVEL = 5 //调试
)

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) Descriptor() ([]byte, []int)

func (*ManResp) GetID

func (m *ManResp) GetID() int64

func (*ManResp) ProtoMessage

func (*ManResp) ProtoMessage()

func (*ManResp) Reset

func (m *ManResp) Reset()

func (*ManResp) String

func (m *ManResp) String() string

func (*ManResp) XXX_DiscardUnknown

func (m *ManResp) XXX_DiscardUnknown()

func (*ManResp) XXX_Marshal

func (m *ManResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ManResp) XXX_Merge

func (m *ManResp) XXX_Merge(src proto.Message)

func (*ManResp) XXX_Size

func (m *ManResp) XXX_Size() int

func (*ManResp) XXX_Unmarshal

func (m *ManResp) XXX_Unmarshal(b []byte) error

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 ManageProductTemplateReq

type ManageProductTemplateReq struct {
	Info                 *ProductTemplate `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

只能修改

func (*ManageProductTemplateReq) Descriptor

func (*ManageProductTemplateReq) Descriptor() ([]byte, []int)

func (*ManageProductTemplateReq) GetInfo

func (*ManageProductTemplateReq) ProtoMessage

func (*ManageProductTemplateReq) ProtoMessage()

func (*ManageProductTemplateReq) Reset

func (m *ManageProductTemplateReq) Reset()

func (*ManageProductTemplateReq) String

func (m *ManageProductTemplateReq) String() string

func (*ManageProductTemplateReq) XXX_DiscardUnknown

func (m *ManageProductTemplateReq) XXX_DiscardUnknown()

func (*ManageProductTemplateReq) XXX_Marshal

func (m *ManageProductTemplateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ManageProductTemplateReq) XXX_Merge

func (m *ManageProductTemplateReq) XXX_Merge(src proto.Message)

func (*ManageProductTemplateReq) XXX_Size

func (m *ManageProductTemplateReq) XXX_Size() int

func (*ManageProductTemplateReq) XXX_Unmarshal

func (m *ManageProductTemplateReq) XXX_Unmarshal(b []byte) error

type NET

type NET = int64
const (
	NET_OTHER NET = 1 //其他
	NET_WIFI  NET = 2 //wi-fi
	NET_G234  NET = 3 //2G/3G/4G
	NET_G5    NET = 4 //5G
	NET_BLE   NET = 5 //蓝牙
	NET_LORA  NET = 6 //LoRaWAN
)

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) Descriptor() ([]byte, []int)

func (*PageInfo) GetPage

func (m *PageInfo) GetPage() int64

func (*PageInfo) GetPageSize

func (m *PageInfo) GetPageSize() int64

func (*PageInfo) ProtoMessage

func (*PageInfo) ProtoMessage()

func (*PageInfo) Reset

func (m *PageInfo) Reset()

func (*PageInfo) String

func (m *PageInfo) String() string

func (*PageInfo) XXX_DiscardUnknown

func (m *PageInfo) XXX_DiscardUnknown()

func (*PageInfo) XXX_Marshal

func (m *PageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PageInfo) XXX_Merge

func (m *PageInfo) XXX_Merge(src proto.Message)

func (*PageInfo) XXX_Size

func (m *PageInfo) XXX_Size() int

func (*PageInfo) XXX_Unmarshal

func (m *PageInfo) XXX_Unmarshal(b []byte) error

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"`
	Description          *wrapperspb.StringValue `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	DevStatus            *wrapperspb.StringValue `protobuf:"bytes,12,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) 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 ProductTemplate

type ProductTemplate 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"`
	Template             *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*ProductTemplate) Descriptor

func (*ProductTemplate) Descriptor() ([]byte, []int)

func (*ProductTemplate) GetCreatedTime

func (m *ProductTemplate) GetCreatedTime() int64

func (*ProductTemplate) GetProductID

func (m *ProductTemplate) GetProductID() string

func (*ProductTemplate) GetTemplate

func (m *ProductTemplate) GetTemplate() *wrapperspb.StringValue

func (*ProductTemplate) ProtoMessage

func (*ProductTemplate) ProtoMessage()

func (*ProductTemplate) Reset

func (m *ProductTemplate) Reset()

func (*ProductTemplate) String

func (m *ProductTemplate) String() string

func (*ProductTemplate) XXX_DiscardUnknown

func (m *ProductTemplate) XXX_DiscardUnknown()

func (*ProductTemplate) XXX_Marshal

func (m *ProductTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProductTemplate) XXX_Merge

func (m *ProductTemplate) XXX_Merge(src proto.Message)

func (*ProductTemplate) XXX_Size

func (m *ProductTemplate) XXX_Size() int

func (*ProductTemplate) XXX_Unmarshal

func (m *ProductTemplate) 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) Descriptor() ([]byte, []int)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

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 SendDeviceMsgReq

type SendDeviceMsgReq struct {
	ClientID             string   `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"`
	Topic                string   `protobuf:"bytes,3,opt,name=Topic,proto3" json:"Topic,omitempty"`
	Payload              string   `protobuf:"bytes,4,opt,name=Payload,proto3" json:"Payload,omitempty"`
	Timestamp            int64    `protobuf:"varint,5,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	Action               string   `protobuf:"bytes,6,opt,name=Action,proto3" json:"Action,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendDeviceMsgReq) Descriptor

func (*SendDeviceMsgReq) Descriptor() ([]byte, []int)

func (*SendDeviceMsgReq) GetAction

func (m *SendDeviceMsgReq) GetAction() string

func (*SendDeviceMsgReq) GetClientID

func (m *SendDeviceMsgReq) GetClientID() string

func (*SendDeviceMsgReq) GetPayload

func (m *SendDeviceMsgReq) GetPayload() string

func (*SendDeviceMsgReq) GetTimestamp

func (m *SendDeviceMsgReq) GetTimestamp() int64

func (*SendDeviceMsgReq) GetTopic

func (m *SendDeviceMsgReq) GetTopic() string

func (*SendDeviceMsgReq) GetUsername

func (m *SendDeviceMsgReq) GetUsername() string

func (*SendDeviceMsgReq) ProtoMessage

func (*SendDeviceMsgReq) ProtoMessage()

func (*SendDeviceMsgReq) Reset

func (m *SendDeviceMsgReq) Reset()

func (*SendDeviceMsgReq) String

func (m *SendDeviceMsgReq) String() string

func (*SendDeviceMsgReq) XXX_DiscardUnknown

func (m *SendDeviceMsgReq) XXX_DiscardUnknown()

func (*SendDeviceMsgReq) XXX_Marshal

func (m *SendDeviceMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendDeviceMsgReq) XXX_Merge

func (m *SendDeviceMsgReq) XXX_Merge(src proto.Message)

func (*SendDeviceMsgReq) XXX_Size

func (m *SendDeviceMsgReq) XXX_Size() int

func (*SendDeviceMsgReq) XXX_Unmarshal

func (m *SendDeviceMsgReq) XXX_Unmarshal(b []byte) error

type SendDeviceMsgResp

type SendDeviceMsgResp struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendDeviceMsgResp) Descriptor

func (*SendDeviceMsgResp) Descriptor() ([]byte, []int)

func (*SendDeviceMsgResp) ProtoMessage

func (*SendDeviceMsgResp) ProtoMessage()

func (*SendDeviceMsgResp) Reset

func (m *SendDeviceMsgResp) Reset()

func (*SendDeviceMsgResp) String

func (m *SendDeviceMsgResp) String() string

func (*SendDeviceMsgResp) XXX_DiscardUnknown

func (m *SendDeviceMsgResp) XXX_DiscardUnknown()

func (*SendDeviceMsgResp) XXX_Marshal

func (m *SendDeviceMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendDeviceMsgResp) XXX_Merge

func (m *SendDeviceMsgResp) XXX_Merge(src proto.Message)

func (*SendDeviceMsgResp) XXX_Size

func (m *SendDeviceMsgResp) XXX_Size() int

func (*SendDeviceMsgResp) XXX_Unmarshal

func (m *SendDeviceMsgResp) 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"`
	DataTimestamp        int64    `protobuf:"varint,4,opt,name=dataTimestamp,proto3" json:"dataTimestamp,omitempty"`
	Method               string   `protobuf:"bytes,5,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) GetDataTimestamp

func (m *SendPropertyReq) GetDataTimestamp() int64

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 {
	Code                 int64    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Status               string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	ClientToken          string   `protobuf:"bytes,3,opt,name=clientToken,proto3" json:"clientToken,omitempty"`
	Data                 string   `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendPropertyResp) Descriptor

func (*SendPropertyResp) Descriptor() ([]byte, []int)

func (*SendPropertyResp) GetClientToken

func (m *SendPropertyResp) GetClientToken() string

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) GetDeviceDescribeLog

func (*UnimplementedDmServer) GetDeviceInfo

func (*UnimplementedDmServer) GetProductInfo

func (*UnimplementedDmServer) GetProductTemplate

func (*UnimplementedDmServer) LoginAuth

func (*UnimplementedDmServer) LoginAuth(ctx context.Context, req *LoginAuthReq) (*Response, error)

func (*UnimplementedDmServer) ManageDevice

func (*UnimplementedDmServer) ManageProduct

func (*UnimplementedDmServer) ManageProductTemplate

func (*UnimplementedDmServer) SendAction

func (*UnimplementedDmServer) SendDeviceMsg

func (*UnimplementedDmServer) SendProperty

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL