memorygit

package
v0.0.0-...-7d6b287 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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]) Find

func (m *VersionedSyncMap[K, V]) Find(f func(k K, v *version.Values[V]) bool) *version.Values[V]

func (*VersionedSyncMap[K, V]) FindAll

func (m *VersionedSyncMap[K, V]) FindAll(f func(k K, v *version.Values[V]) bool) []*version.Values[V]

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL