Documentation
¶
Index ¶
Constants ¶
View Source
const DEVICETYPE_ANDROID string = "ANDROID" //android"),
View Source
const DEVICETYPE_GATEWAY string = "GATEWAY" //网关"),
View Source
const DEVICETYPE_IOS string = "IOS" //ios"),
View Source
const DEVICETYPE_MESH string = "MESH" //MESH网关"),
View Source
const DEVICETYPE_MOBILE string = "MOBILE" //手机"),
View Source
const DEVICETYPE_OTHER string = "OTHER" //OTHER"),
View Source
const DEVICETYPE_SERVER string = "SERVER" //服务器"),
View Source
const DeviceTypeDefault = "Default"
Variables ¶
View Source
var DpReportProcessors map[string]IDpReportProcessor = make(map[string]IDpReportProcessor)
Functions ¶
func MatchDeviceType ¶
func MatchString ¶
Types ¶
type DefaultDpReportProcessor ¶
type DefaultDpReportProcessor struct {
}
func (*DefaultDpReportProcessor) DeviceType ¶
func (p *DefaultDpReportProcessor) DeviceType() string
type IDpReportProcessor ¶
type IDpReportProcessor interface {
DeviceType() string
Process(topicDevId string, Data map[string]string) (bool, error)
}
func GetDpReportProcessor ¶
func GetDpReportProcessor(protocolVersion string) IDpReportProcessor
type MeshDpReportProcessor ¶
type MeshDpReportProcessor struct {
}
func (*MeshDpReportProcessor) DeviceType ¶
func (p *MeshDpReportProcessor) DeviceType() string
Click to show internal directories.
Click to hide internal directories.