types

package
v0.0.0-...-0394936 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 2 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 SortFunction

type SortFunction[K constraints.Ordered] func(data []K, i, j int) bool

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]

type Weighted

type Weighted[V any] struct {
	Value  V
	Weight uint32
}

Jump to

Keyboard shortcuts

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