Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResourceNodes *ResourceNodeList // 所有节点 IsReData bool // 正在重新获取数据库中的数据并重建某个索引 Mux sync.Mutex Tree *TreeCache // 缓存所有节点的树 UserTreeLRU *LRU // 缓存用户有权限节点的子树 ResourceLRU *LRU2 // 缓存资源与其他资源的关联图 NodePool = sync.Pool{ New: func() interface{} { return &model.ResourceNode{} }, } )
Functions ¶
Types ¶
type LRU ¶
type ResourceNodeList ¶
type ResourceNodeList struct { Data []*model.ResourceNode Version int ReData []*model.ResourceNode ReVersion int }
Click to show internal directories.
Click to hide internal directories.