sync

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func (this *Map[K, V]) Delete(key K)

func (*Map[K, V]) Get

func (this *Map[K, V]) Get(key K) V

func (*Map[K, V]) GetOrStore

func (this *Map[K, V]) GetOrStore(key K, val V) V

func (*Map[K, V]) IsEmpty

func (this *Map[K, V]) IsEmpty() bool

func (*Map[K, V]) Load

func (this *Map[K, V]) Load(key K) (V, bool)

func (*Map[K, V]) LoadAndDelete

func (this *Map[K, V]) LoadAndDelete(key K) (V, bool)

func (*Map[K, V]) LoadOrStore

func (this *Map[K, V]) LoadOrStore(key K, val V) (V, bool)

func (*Map[K, V]) Map

func (this *Map[K, V]) Map() map[K]V

func (*Map[K, V]) MarshalNode

func (this *Map[K, V]) MarshalNode(c ctx.C) (n enc.Node, err error)

func (*Map[K, V]) Range

func (this *Map[K, V]) Range(f func(key K, val V) bool)

func (*Map[K, V]) Store

func (this *Map[K, V]) Store(key K, val V)

func (*Map[K, V]) UnmarshalNode

func (this *Map[K, V]) UnmarshalNode(c ctx.C, n enc.Node) error

type MetricsMutex

type MetricsMutex struct {
	// contains filtered or unexported fields
}

func (*MetricsMutex) Lock

func (m *MetricsMutex) Lock()

func (*MetricsMutex) Unlock

func (m *MetricsMutex) Unlock()

type Mutex

type Mutex struct {
	sync.Mutex
}

Jump to

Keyboard shortcuts

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