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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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