datastore

package
Version: v0.0.0-...-406cfb6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package datastore implements datastore (key, value pair) interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore interface {
	Get(key string) (value []byte, found bool)
}

Datastore is an interface for retrieving value using key.

type Simple

type Simple struct {
	Key   string
	Value []byte
}

Simple is a simple struct stores only one key, value pair. This struct implement Datastore interface.

func (*Simple) Get

func (d *Simple) Get(key string) ([]byte, bool)

Simple.Get returns value using key.

Source Files

Jump to

Keyboard shortcuts

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