roach

package
v0.0.0-...-a313e43 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 10 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 implements filesys.Driver interface using cockroach.

func New

func New(drop bool) (*Driver, error)

New returns a new driver. It also installs necessary databases and tables. Existing databases/tables are dropped if drop is set.

func (*Driver) Delete

func (d *Driver) Delete(uuid string) error

Delete deletes all stripes for uuid.

func (*Driver) Lookup

func (d *Driver) Lookup(uuid string, stripeID int) error

Lookup looks up a stripe with key (uuid, stripeID).

func (*Driver) Persist

func (d *Driver) Persist(uuid string, stripeID int, metadata string) error

Persist persists metadata for stripe (uuid, stripeID).

func (*Driver) PrintStats

func (d *Driver) PrintStats(elapsed time.Duration)

PrintStats prints statistics collected by the driver.

Jump to

Keyboard shortcuts

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