types

package
v0.0.0-...-80fb781 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PutEvent    = "PUT"
	DeleteEvent = "DELETE"
)

Variables

View Source
var (
	ErrNilSet      = errors.New("set is nil")
	ErrNilMap      = errors.New("map is nil")
	ErrReadOnlyMap = errors.New("map is readonly")
)

Functions

This section is empty.

Types

type EventType

type EventType string

type Item

type Item[K comparable, V any] struct {
	Key   K
	Value V
}

type Iterator

type Iterator[K comparable, V any] <-chan Item[K, V]

type MarshalFunc

type MarshalFunc func(v any) ([]byte, error)

encoding/json Marshal function type

type UnmarshalFunc

type UnmarshalFunc func(data []byte, v any) error

encoding/json Unmarshal function type

type WatchMsg

type WatchMsg[K comparable, V any] struct {
	Event EventType
	Item[K, V]
}

type Watcher

type Watcher[K comparable, V any] <-chan WatchMsg[K, V]

Jump to

Keyboard shortcuts

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