bleve

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BLEVE_PATH                   string = filepath.Join(getHomeDir(), ".jarvis", "db.bleve")
	BLEVE_DATA_PATH              string = filepath.Join(getHomeDir(), ".jarvis", "bleve.data")
	THIS_SESSION_BLEVE_DATA_PATH string
)

Functions

func CopyBleveDataFileToSession added in v0.0.30

func CopyBleveDataFileToSession() error

Types

type AddressDesc

type AddressDesc struct {
	Address      string
	Desc         string
	SearchString string
}

func GetAddress

func GetAddress(input string) (AddressDesc, error)

func GetAddresses

func GetAddresses(input string) ([]AddressDesc, []int)

type BleveDB

type BleveDB struct {
	Hash    string
	Session string
	// contains filtered or unexported fields
}

func NewBleveDB

func NewBleveDB() (*BleveDB, error)

func (*BleveDB) Persist

func (bleveDB *BleveDB) Persist() error

func (*BleveDB) Search

func (bleveDB *BleveDB) Search(input string) ([]AddressDesc, []int)

Jump to

Keyboard shortcuts

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