types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	PutEvent    EventType = "PUT"
	DeleteEvent EventType = "DELETE"
	ErrorEvent  EventType = "ERROR"
)

type Item

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

type Iterator

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

type Marshaler

type Marshaler interface {
	Encode(v any) error
}

type Unmarshaler

type Unmarshaler struct {
	Decode func(v any) error
}

type WatchMsg

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

type Watcher

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

Jump to

Keyboard shortcuts

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