README ¶ btree-list Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Item func (i *Item) Less(item btree.Item) bool type List func New() *List func (list *List) Add(id int, instancePointer interface{}) func (list *List) Delete(id int) func (list *List) Get(id int) *Item func (list *List) Lock() func (list *List) Unlock() func (list *List) UpdateActive(id int, timestamp int64) bool func (list *List) UpdateActiveByTime(id int) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Item ¶ type Item struct { Id int InstancePointer interface{} Active int64 } func (*Item) Less ¶ func (i *Item) Less(item btree.Item) bool type List ¶ type List struct { Tree *btree.BTree MutexLock *sync.RWMutex } func New ¶ func New() *List func (*List) Add ¶ func (list *List) Add(id int, instancePointer interface{}) func (*List) Delete ¶ func (list *List) Delete(id int) func (*List) Get ¶ func (list *List) Get(id int) *Item func (*List) Lock ¶ func (list *List) Lock() func (*List) Unlock ¶ func (list *List) Unlock() func (*List) UpdateActive ¶ func (list *List) UpdateActive(id int, timestamp int64) bool func (*List) UpdateActiveByTime ¶ func (list *List) UpdateActiveByTime(id int) bool Source Files ¶ View all Source files btreelist.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.