Documentation ¶
Index ¶
- type CH
- type Conf
- type Edge
- func (e *Edge) Active(_ *http.Request, conf *Conf, _ *Result) (err error)
- func (e *Edge) GetBaseInfo(_ *http.Request, uid *string, result *Result) (err error)
- func (e *Edge) GetRealtimeData(_ *http.Request, uid *string, result *Result) (err error)
- func (e *Edge) GetValue(_ *http.Request, ch *CH, result *Result) (err error)
- func (e *Edge) Remove(_ *http.Request, uid *string, _ *Result) (err error)
- func (e *Edge) Reset(_ *http.Request, uid *string, _ *Result) (err error)
- func (e *Edge) SetValue(_ *http.Request, val *Value, _ *Result) (err error)
- func (e *Edge) StartInverseServer(conf *InverseConf) error
- type InverseConf
- type Result
- type Sink
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
func (*Edge) GetBaseInfo ¶
GetBaseInfo 获取设备基本信息
func (*Edge) GetRealtimeData ¶
GetRealtimeData 获取设备全部的即时数据
func (*Edge) StartInverseServer ¶
func (e *Edge) StartInverseServer(conf *InverseConf) error
type InverseConf ¶
type Sink ¶
type Sink interface { StartInverseServer(conf *InverseConf) error Reset(uid string) GetBaseInfo(uid string) (map[string]interface{}, error) Remove(uid string) Active(conf *Conf) error SetValue(val *Value) error GetValue(ch *CH) (interface{}, error) GetRealtimeData(uid string) ([]map[string]interface{}, error) }
Click to show internal directories.
Click to hide internal directories.