Skip to content

Instantly share code, notes, and snippets.

@imneov
imneov / filter.go
Created June 14, 2020 15:12 — forked from upbit/filter.go
Filter API中对象池的
// Filter 注册的filter,用于在server端过滤数据并提供高性能查询
type Filter struct {
KeyFileds []string
FilterStr string // 更新无极数据时用到的,注册的filter条件
Template interface{} // 返回数据类型模板
// objStore 用于Filter后数据的存储
objStore map[string]interface{}
objStoreMutex *sync.RWMutex
dataVersion int // 当前内存中无极数据的版本
stat *Stat
# 启动
python -m IPython notebook
# slide模式
jupyter nbconvert note.ipynb --to slides --post serve