mock

package
v0.0.0-...-3a0a0a1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 3 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 struct {
	Rows []store.Query
	// contains filtered or unexported fields
}

func NewDB

func NewDB(buckets map[string][]Result, errors []error) *DB

func (*DB) AddBucket

func (d *DB) AddBucket(row store.Query) error

func (*DB) Delete

func (d *DB) Delete(rows []store.Query) error

func (*DB) DeleteAll

func (d *DB) DeleteAll(bucket []byte) error

func (*DB) Get

func (d *DB) Get(rows []store.Query, f func([]byte, []byte) error) error

func (*DB) GetAll

func (d *DB) GetAll(row store.Query, f func(key, val []byte) error) error

func (*DB) GetBackup

func (d *DB) GetBackup(w http.ResponseWriter) error

func (*DB) Put

func (d *DB) Put(rows []store.Query) error

func (*DB) RenameBucket

func (d *DB) RenameBucket(dst, src store.Query) error

type Result

type Result struct {
	Key []byte
	Val []byte
}

Jump to

Keyboard shortcuts

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