storage

package
v0.0.0-...-9d38f52 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, d driver.Driver)

Register a storage driver.

Types

type DB

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

DB handle for interaction with a database.

func Open

func Open(name string, cfg driver.Cfg) (*DB, error)

Open a new database connection.

func (*DB) Apply

func (db *DB) Apply(ctx context.Context, key string, mut driver.Mutation) error

Apply the mutation.

func (*DB) Drain

func (db *DB) Drain(ctx context.Context, keys []string, sink driver.Sink) error

Drain the keys into the sink.

Directories

Path Synopsis
badgerdriver
Package badgerdriver is a generated protocol buffer package.
Package badgerdriver is a generated protocol buffer package.
bigtabledriver
Package bigtabledriver is a generated protocol buffer package.
Package bigtabledriver is a generated protocol buffer package.
boltdriver
Package boltdriver is a generated protocol buffer package.
Package boltdriver is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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