Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceToBytes ¶
Types ¶
type Codec ¶
type Codec interface { Encode(ctx context.Context, rawData interface{}) (*DeviceDecodeMsg, error) Decode(ctx context.Context, msg DeviceData) (interface{}, error) Save(ctx context.Context, dmesg *DeviceDecodeMsg) error }
type DeviceData ¶
type DeviceDecodeMsg ¶
type DeviceDecodeMsg struct {
// contains filtered or unexported fields
}
func (*DeviceDecodeMsg) GetDataList ¶
func (d *DeviceDecodeMsg) GetDataList() []*DeviceData
func (*DeviceDecodeMsg) GetDeviceInfo ¶
func (d *DeviceDecodeMsg) GetDeviceInfo() *model.DeviceAllInfo
func (*DeviceDecodeMsg) GetEventList ¶
func (d *DeviceDecodeMsg) GetEventList() []*DeviceEvent
type DeviceEvent ¶
type DeviceEvent struct { Name string Data interface{} }
Click to show internal directories.
Click to hide internal directories.