dbfiles

package
v0.0.0-...-59a64bd Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

Driver AFAIRE

func New

func New(dbName, dir string, cbAlert func(error)) (*Driver, error)

New AFAIRE

func (*Driver) DeleteCollection

func (d *Driver) DeleteCollection(collection string, timeout time.Duration) error

DeleteCollection AFAIRE

func (*Driver) DeleteDatabase

func (d *Driver) DeleteDatabase(timeout time.Duration) error

DeleteDatabase AFAIRE

func (*Driver) DeleteDocument

func (d *Driver) DeleteDocument(collection, document string, timeout time.Duration) error

DeleteDocument AFAIRE

func (*Driver) ReadCollection

func (d *Driver) ReadCollection(collection string, timeout time.Duration, data interface{}, fn func() error) error

ReadCollection AFAIRE

func (*Driver) ReadDatabase

func (d *Driver) ReadDatabase(timeout time.Duration, data interface{}, fn func() error) error

ReadDatabase AFAIRE

func (*Driver) ReadDocument

func (d *Driver) ReadDocument(collection, document string, timeout time.Duration, data interface{}) error

ReadDocument AFAIRE

func (*Driver) WriteDocument

func (d *Driver) WriteDocument(collection, document string, timeout time.Duration, data interface{}) error

WriteDocument AFAIRE

Jump to

Keyboard shortcuts

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