cang

package module
v0.0.0-...-53cfc16 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 10 Imported by: 1

README

cang

Local data warehouse

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(callback func(dbAbsPath string))

func NameVerify

func NameVerify(nameStr string) *errors.Error

Types

type Cang

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

func NewCang

func NewCang(name string, dbPath string) (*Cang, *errors.Error)

func (*Cang) Close

func (dbx *Cang) Close() *errors.Error

func (*Cang) Collection

func (dbx *Cang) Collection(name string) (*Collection, *errors.Error)

func (*Cang) IsReady

func (dbx *Cang) IsReady() bool

type Collection

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

func (*Collection) Get

func (coll *Collection) Get(key string) ([]byte, *errors.Error)

func (*Collection) Iter

func (coll *Collection) Iter(callback func(k string, byteData []byte) bool) *errors.Error

func (*Collection) MustGet

func (coll *Collection) MustGet(key string, v interface{}) *errors.Error

func (*Collection) Put

func (coll *Collection) Put(key string, data interface{}) *errors.Error

func (*Collection) Remove

func (coll *Collection) Remove(key string) *errors.Error

Jump to

Keyboard shortcuts

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