storage

package
v0.0.0-...-8a9203b Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Open(string) error
	Close() error
	Get([]byte) ([]byte, error)
	Put([]byte, []byte) error
	Status() map[string]string
	String() string
}

func Init

func Init(opts *Options) (DB, error)

type Options

type Options struct {
	Driver string `name:"driver" default:"boltdb"`
	Path   string `name:"path" default:"/tmp/"`
	Name   string `name:"name" default:"metastore.db"` // TODO: Rename me.
}

TODO: Specific driver configuration.

func (*Options) DB

func (opts *Options) DB() (DB, error)

func (*Options) DBPath

func (opts *Options) DBPath() string

func (*Options) Validate

func (opts *Options) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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