state

package
v0.0.0-...-8cfd1f9 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
	ETag  string      `json:"etag,omitempty"`
}

type Store

type Store interface {
	SetState(ctx context.Context, store string, items ...Item) error
	GetState(ctx context.Context, store string, key string, target interface{}) error
}

Jump to

Keyboard shortcuts

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