memory

package
v0.0.0-...-cfbc090 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string) view.Mod

func Update

func Update(key string, update func(interface{}, bool) interface{}) view.Mod

func Use

func Use() view.Mod

Types

type Memory

type Memory interface {
	Get(key string) (interface{}, bool)
	Update(key string, update func(interface{}, bool) interface{})
	Delete(key string)
}

func Extract

func Extract(ctx context.Context) Memory

Jump to

Keyboard shortcuts

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