syncd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapOf

type MapOf[K comparable, V any] struct {
	// contains filtered or unexported fields
}

MapOf produces a threadsafe map[K]V

func NewMapOf

func NewMapOf[K comparable, V any]() MapOf[K, V]

NewMapOf produces a new threadsafe mapOf[K]V

func (*MapOf[K, V]) LazyInit

func (m *MapOf[K, V]) LazyInit()

LazyInit ensures the underlying map is populated. no-op if already initialized.

func (MapOf[K, V]) Load

func (m MapOf[K, V]) Load(k K) (V, bool)

func (MapOf[K, V]) Size

func (m MapOf[K, V]) Size() int

func (MapOf[K, V]) Store

func (m MapOf[K, V]) Store(k K, v V)

func (MapOf[K, V]) Values

func (m MapOf[K, V]) Values() map[K]V

type MapTo

type MapTo[V any] struct {
	// contains filtered or unexported fields
}

MapTo produces a threadsafe map[string]V

func NewMapTo

func NewMapTo[V any]() MapTo[V]

NewMapTo produces a new threadsafe mapOf[string]V

func (MapTo[V]) Load

func (m MapTo[V]) Load(k string) (V, bool)

func (MapTo[V]) Size

func (m MapTo[V]) Size() int

func (MapTo[V]) Store

func (m MapTo[V]) Store(k string, v V)

Jump to

Keyboard shortcuts

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