state

package
v0.0.0-...-36bb858 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder[K comparable] interface {
	Add(ctx context.Context, k K) error
}

Adder has the Add method

type Set

type Set[K comparable] interface {
	kv.Lister[K]
	Adder[K]
	kv.Deleter[K]
}

Set represents a set of elements

func NewMemSet

func NewMemSet[K comparable](cmp func(a, b K) int) Set[K]

NewMemSet returns a Set using memory for storage.

Jump to

Keyboard shortcuts

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