Documentation ¶
Index ¶
Constants ¶
View Source
const (
CodeIThings = "iThings" //默认协议
)
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(fields ConfigFields, infos ConfigInfos) error
Types ¶
type ConfigField ¶
type ConfigFields ¶
type ConfigFields []*ConfigField
type ConfigInfo ¶
type ConfigInfo struct { ID int64 `json:"id"` Config map[string]string `json:"config"` //协议配置内容,key要从protocolInfo的ConfigKeys里拿 Desc string `json:"desc"` // 描述 }
自定义协议的配置表
type ConfigInfos ¶
type ConfigInfos []*ConfigInfo
func (ConfigInfos) ToPubStu ¶
func (c ConfigInfos) ToPubStu() (ret []map[string]string)
Click to show internal directories.
Click to hide internal directories.