db

package
v0.0.0-...-2072eeb Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bucket   = "bucket"
	ObjSize  = "obj_size"
	ObjCount = "obj_count"
	ObjTotal = "obj_total"
	Started  = "started"
	Parallel = "parallel"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(path string, readonly bool) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Del

func (db *DB) Del(k string) error

func (*DB) Get

func (db *DB) Get(s string) (res string, err error)

func (*DB) GetInt

func (db *DB) GetInt(s string) (res int64, err error)

func (*DB) Put

func (db *DB) Put(k, v string) error

func (*DB) PutInt

func (db *DB) PutInt(k string, v int64) error

Jump to

Keyboard shortcuts

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