Documentation
¶
Index ¶
- type IDStorage
- type LockableIDStorage
- type RecordsByID
- func (r *RecordsByID) Count() int
- func (r *RecordsByID) Delete(id int64)
- func (r *RecordsByID) Get(id int64) record.Record
- func (r *RecordsByID) GetAllData() []record.Record
- func (r *RecordsByID) GetData(stores []LockableIDStorage) []record.Record
- func (r *RecordsByID) GetIDStorage() LockableIDStorage
- func (r *RecordsByID) Set(id int64, item record.Record)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDStorage ¶
func NewIDStorage ¶
func NewIDStorage() *IDStorage
func (*IDStorage) ThreadUnsafeData ¶
type LockableIDStorage ¶
type LockableIDStorage interface { RLock() RUnlock() ThreadUnsafeData() map[int64]struct{} }
type RecordsByID ¶
func NewRecordsByID ¶
func NewRecordsByID() *RecordsByID
func (*RecordsByID) Count ¶
func (r *RecordsByID) Count() int
func (*RecordsByID) Delete ¶
func (r *RecordsByID) Delete(id int64)
func (*RecordsByID) GetAllData ¶
func (r *RecordsByID) GetAllData() []record.Record
func (*RecordsByID) GetData ¶
func (r *RecordsByID) GetData(stores []LockableIDStorage) []record.Record
func (*RecordsByID) GetIDStorage ¶
func (r *RecordsByID) GetIDStorage() LockableIDStorage
Click to show internal directories.
Click to hide internal directories.