Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDIterator ¶
type IDIterator interface {
Iterate(f func(id int64))
}
type IDStorage ¶
type IDStorage interface { IDIterator Count() int Add(id int64) Delete(id int64) }
func CreateSetIDStorage ¶
func CreateSetIDStorage() IDStorage
type MapIDStorage ¶
type MapIDStorage map[int64]struct{}
func CreateMapIDStorage ¶
func CreateMapIDStorage() MapIDStorage
func (MapIDStorage) Iterate ¶
func (s MapIDStorage) Iterate(f func(id int64))
type RecordsByID ¶
type RecordsByID[R record.Record] interface { GetIDStorage() IDIterator Get(id int64) (R, bool) Set(id int64, item R) Delete(id int64) Count() int GetData(stores []IDIterator, totalCount int, idsUnique bool) []R GetAllData() []R }
func CreateRecordsByID ¶
func CreateRecordsByID[R record.Record]() RecordsByID[R]
type UniqueIDStorage ¶
func CreateUniqueIDStorage ¶
func CreateUniqueIDStorage() UniqueIDStorage
Click to show internal directories.
Click to hide internal directories.