storage

package
v0.0.0-...-c5dc566 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package storage provides Cogs with access to storage mechanisms that hold data that a Cog may need for operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	// Read will allow retrieval of a value at key 'k' and store it in 'v'.
	// 'v' must be a pointer to a supportted type.
	// This can be an int, uint, float64, string or []byte.
	// A key cannot be larger than 1MiB.
	Read(cog, k string, v interface{}) error
}

KeyValue allows a Cog to interact with Marmot's global key value store. This is for storing information needed by a Cog to operate, such as certs or passwords. It should not store large data or data passed between Cogs in a Labor.

Directories

Path Synopsis
Package toml implements a key/value store using TOML for Cogs to query.
Package toml implements a key/value store using TOML for Cogs to query.

Jump to

Keyboard shortcuts

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