hashdb

package
v0.0.0-...-496cfe7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: GPL-2.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDocument

func AddDocument(document map[string]interface{}, collection string)

func CheckCollectionExists

func CheckCollectionExists(name string) bool

func CreateCollection

func CreateCollection(name string)

func NewDB

func NewDB(path string) *db.DB

func PrintCollection

func PrintCollection(collection string)

Types

type DBContent

type DBContent struct {
	Collection *db.Col
	Name       string
}

func (*DBContent) AddDocID

func (dbcontent *DBContent) AddDocID(document map[string]interface{}, id int)

func (*DBContent) AddDocument

func (dbcontent *DBContent) AddDocument(document map[string]interface{}) int

func (*DBContent) LoadCollection

func (dbcontent *DBContent) LoadCollection(name string)

func (*DBContent) RemoveCollection

func (dbcontent *DBContent) RemoveCollection(name string)

type HostID

type HostID map[string][]int

Jump to

Keyboard shortcuts

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