Documentation ¶
Overview ¶
* @Author: Wangjun * @Date: 2022-01-06 16:46:05 * @LastEditTime: 2022-02-14 10:52:32 * @LastEditors: Wangjun * @Description: * @FilePath: \plc_state_fand:\go\src\gitee.com\haodreams\golib\datachange\group.go * hnxr
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataChange ¶
type DataChange struct { ID int //ID 识别码 Memory //内存数据 Relation DataChanger //关联接口 }
type DataChanger ¶
type DataChanger interface {
OnDataChange(dc *DataChange, now, currentValue int64)
}
*
- @description: 数据改变的回调服务
- @param {*}
- @return {*}
type DataGroup ¶
type DataGroup struct {
// contains filtered or unexported fields
}
func (*DataGroup) Add ¶
func (m *DataGroup) Add(dc *DataChange)
*
- @description: 添加一个数据变位事件
- @param {*DataChange} dc
- @return {*}
func (*DataGroup) GetDataChange ¶
func (m *DataGroup) GetDataChange(id int) (dc *DataChange)
*
- @description: 获取dataChange
- @param {int} id
- @return {*}
Click to show internal directories.
Click to hide internal directories.