Documentation ¶
Index ¶
- type Map
- func (this *Map[K, V]) Delete(key K)
- func (this *Map[K, V]) Get(key K) V
- func (this *Map[K, V]) GetOrStore(key K, val V) V
- func (this *Map[K, V]) IsEmpty() bool
- func (this *Map[K, V]) Load(key K) (V, bool)
- func (this *Map[K, V]) LoadAndDelete(key K) (V, bool)
- func (this *Map[K, V]) LoadOrStore(key K, val V) (V, bool)
- func (this *Map[K, V]) Map() map[K]V
- func (this *Map[K, V]) MarshalNode(c ctx.C) (n enc.Node, err error)
- func (this *Map[K, V]) Range(f func(key K, val V) bool)
- func (this *Map[K, V]) Store(key K, val V)
- func (this *Map[K, V]) UnmarshalNode(c ctx.C, n enc.Node) error
- type MetricsMutex
- type Mutex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, T any] struct { // contains filtered or unexported fields }
func (*Map[K, V]) GetOrStore ¶
func (this *Map[K, V]) GetOrStore(key K, val V) V
func (*Map[K, V]) LoadAndDelete ¶
func (*Map[K, V]) LoadOrStore ¶
type MetricsMutex ¶
type MetricsMutex struct {
// contains filtered or unexported fields
}
func (*MetricsMutex) Lock ¶
func (m *MetricsMutex) Lock()
func (*MetricsMutex) Unlock ¶
func (m *MetricsMutex) Unlock()
Click to show internal directories.
Click to hide internal directories.