syncmap

package module
v1.0.4 Latest Latest
Warning

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

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

README

syncmap

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgument = errors.New("invalid argument")
	ErrAlreadyExists   = errors.New("already exists")
	ErrNotFound        = errors.New("not found")
)

Functions

This section is empty.

Types

type Syncmap

type Syncmap interface {
	Create(key, value any) error
	Update(key, value any) error
	Delete(key any) error

	Get(key any) (any, error)
	GetMulti(keys []any) (map[any]any, error)
}

func NewSyncmap

func NewSyncmap() Syncmap

Jump to

Keyboard shortcuts

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