store

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputDirectoryKey = "output_directory"
	ProviderKey        = "provider"
	ProfileKey         = "profile"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	Get(ctx context.Context, key string) (interface{}, error)
	GetString(ctx context.Context, key string) string
	GetBool(ctx context.Context, key string) bool
	GetInt(ctx context.Context, key string) int
	DataMap(ctx context.Context) map[string]interface{}

	Set(ctx context.Context, key string, value interface{}) error
	AddAll(ctx context.Context, data map[string]interface{}) error
}

func NewMemoryStore

func NewMemoryStore() DataStore

func NewMemoryStoreWithData

func NewMemoryStoreWithData(data map[string]interface{}) DataStore

Jump to

Keyboard shortcuts

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