Documentation ¶
Index ¶
- type VersionedSyncMap
- func (m *VersionedSyncMap[K, V]) Archive(key K, archived bool)
- func (m *VersionedSyncMap[K, V]) CountAll(f func(k K, v *version.Values[V]) bool) int
- func (m *VersionedSyncMap[K, V]) Delete(key K)
- func (m *VersionedSyncMap[K, V]) DeleteAll(key ...K)
- func (m *VersionedSyncMap[K, V]) Find(f func(k K, v *version.Values[V]) bool) *version.Values[V]
- func (m *VersionedSyncMap[K, V]) FindAll(f func(k K, v *version.Values[V]) bool) []*version.Values[V]
- func (m *VersionedSyncMap[K, V]) IsArchived(key K) bool
- func (m *VersionedSyncMap[K, V]) LatestVersion(key K) (res *version.Version)
- func (m *VersionedSyncMap[K, V]) Len() int
- func (m *VersionedSyncMap[K, V]) Load(key K, vr version.VersionOrRef) (res *version.Value[V], _ bool)
- func (m *VersionedSyncMap[K, V]) LoadAll(keys []K, vr *version.VersionOrRef) (res []*version.Value[V])
- func (m *VersionedSyncMap[K, V]) LoadAllVersions(key K) (res *version.Values[V])
- func (m *VersionedSyncMap[K, V]) Range(f func(k K, v *version.Values[V]) bool)
- func (m *VersionedSyncMap[K, V]) SaveAll(key []K, value []V, parent []*version.VersionOrRef)
- func (m *VersionedSyncMap[K, V]) SaveOne(key K, value V, parent *version.VersionOrRef)
- func (m *VersionedSyncMap[K, V]) UpdateRef(key K, ref version.Ref, vr *version.VersionOrRef)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VersionedSyncMap ¶
type VersionedSyncMap[K comparable, V any] struct { // contains filtered or unexported fields }
util.SyncMap + version = VersionedSyncMap
func NewVersionedSyncMap ¶
func NewVersionedSyncMap[K comparable, V any]() *VersionedSyncMap[K, V]
func (*VersionedSyncMap[K, V]) Archive ¶
func (m *VersionedSyncMap[K, V]) Archive(key K, archived bool)
func (*VersionedSyncMap[K, V]) CountAll ¶
func (m *VersionedSyncMap[K, V]) CountAll(f func(k K, v *version.Values[V]) bool) int
func (*VersionedSyncMap[K, V]) Delete ¶
func (m *VersionedSyncMap[K, V]) Delete(key K)
func (*VersionedSyncMap[K, V]) DeleteAll ¶
func (m *VersionedSyncMap[K, V]) DeleteAll(key ...K)
func (*VersionedSyncMap[K, V]) IsArchived ¶
func (m *VersionedSyncMap[K, V]) IsArchived(key K) bool
func (*VersionedSyncMap[K, V]) LatestVersion ¶
func (m *VersionedSyncMap[K, V]) LatestVersion(key K) (res *version.Version)
func (*VersionedSyncMap[K, V]) Len ¶
func (m *VersionedSyncMap[K, V]) Len() int
func (*VersionedSyncMap[K, V]) Load ¶
func (m *VersionedSyncMap[K, V]) Load(key K, vr version.VersionOrRef) (res *version.Value[V], _ bool)
func (*VersionedSyncMap[K, V]) LoadAll ¶
func (m *VersionedSyncMap[K, V]) LoadAll(keys []K, vr *version.VersionOrRef) (res []*version.Value[V])
func (*VersionedSyncMap[K, V]) LoadAllVersions ¶
func (m *VersionedSyncMap[K, V]) LoadAllVersions(key K) (res *version.Values[V])
func (*VersionedSyncMap[K, V]) Range ¶
func (m *VersionedSyncMap[K, V]) Range(f func(k K, v *version.Values[V]) bool)
func (*VersionedSyncMap[K, V]) SaveAll ¶
func (m *VersionedSyncMap[K, V]) SaveAll(key []K, value []V, parent []*version.VersionOrRef)
func (*VersionedSyncMap[K, V]) SaveOne ¶
func (m *VersionedSyncMap[K, V]) SaveOne(key K, value V, parent *version.VersionOrRef)
func (*VersionedSyncMap[K, V]) UpdateRef ¶
func (m *VersionedSyncMap[K, V]) UpdateRef(key K, ref version.Ref, vr *version.VersionOrRef)
Click to show internal directories.
Click to hide internal directories.