Documentation ¶
Index ¶
- Constants
- func Deadband(a, b, c float64) bool
- func FloatEqual(a, b float64) bool
- type Cache
- func (me *Cache) GetItems(t int64) (items []*Item, err error)
- func (me *Cache) GetSavePath() string
- func (me *Cache) Reset()
- func (me *Cache) SetSaveDays(days int)
- func (me *Cache) SetSavePath(path string) (err error)
- func (me *Cache) Setup() (err error)
- func (me *Cache) Update(id int32, value float64, status byte, time int64)
- func (me *Cache) UpdateWithDeadband(id int32, value float64, status byte, time int64, deadband float64)
- type Item
Constants ¶
View Source
const DeadbandConst = 0.000001
DeadbandConst 死区的最小常量
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
Cache 缓存文件
func (*Cache) SetSavePath ¶
SetSavePath 设置数据保存的路径
Click to show internal directories.
Click to hide internal directories.