database

package
v0.0.0-...-e444672 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NearDBDatabase

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

func NewDatabase

func NewDatabase() (*NearDBDatabase, error)

func (*NearDBDatabase) Add

func (db *NearDBDatabase) Add(id string, set []string) error

func (*NearDBDatabase) Close

func (db *NearDBDatabase) Close()

func (*NearDBDatabase) Query

func (db *NearDBDatabase) Query(set []string, k int) (utils.ItemList, error)

func (*NearDBDatabase) QueryPage

func (db *NearDBDatabase) QueryPage(set []string, k, offset, all int) (utils.ItemList, error)

func (*NearDBDatabase) Refresh

func (db *NearDBDatabase) Refresh()

func (*NearDBDatabase) Remove

func (db *NearDBDatabase) Remove(id string) error

Jump to

Keyboard shortcuts

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