exec

package
v0.0.0-...-5bb4ea7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FilePrefix = "__kv_"

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct{}

Here is a real implementation of KV that writes to a local file with the key name and the contents are the value of the key.

func (KV) Get

func (KV) Get(key string) ([]byte, error)

func (KV) Keys

func (KV) Keys() ([]string, error)

func (KV) Put

func (KV) Put(key string, value []byte) error

type KVGRPC

type KVGRPC struct{}

Here is a real implementation of KV that uses grpc and writes to a local file with the key name and the contents are the value of the key.

func (KVGRPC) Get

func (KVGRPC) Get(key string) ([]byte, error)

func (KVGRPC) Keys

func (KVGRPC) Keys() ([]string, error)

func (KVGRPC) Put

func (KVGRPC) Put(key string, value []byte) error

Jump to

Keyboard shortcuts

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