keyvaluestore

package
v1.0.0-alpha2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileKeyValueStore

type FileKeyValueStore struct {
	// contains filtered or unexported fields
}

FileKeyValueStore ...

func CreateNewFileKeyValueStore

func CreateNewFileKeyValueStore(path string) (*FileKeyValueStore, error)

CreateNewFileKeyValueStore ...

func (*FileKeyValueStore) GetValue

func (fkvs *FileKeyValueStore) GetValue(key string) ([]byte, error)

GetValue ... *

  • Get the value associated with name.
  • @param {string} name
  • @returns []byte for the value

func (*FileKeyValueStore) SetValue

func (fkvs *FileKeyValueStore) SetValue(key string, value []byte) error

SetValue ... *

  • Set the value associated with name.
  • @param {string} name of the key to save
  • @param {[]byte} value to save

type KeyValueStore

type KeyValueStore interface {
	/**
	 * Get the value associated with name.
	 *
	 * @param {string} name of the key
	 * @returns {[]byte}
	 */
	GetValue(key string) ([]byte, error)

	/**
	 * Set the value associated with name.
	 * @param {string} name of the key to save
	 * @param {[]byte} value to save
	 */
	SetValue(key string, value []byte) error
}

KeyValueStore ... *

  • Abstract class for a Key-Value store. The Chain class uses this store
  • to save sensitive information such as authenticated user's private keys,
  • certificates, etc. *

Jump to

Keyboard shortcuts

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