Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new memory index if one does not exist at the given path. If one does exist, it opens it. Specify ":memory:" as the path to create a new in-memory index.
type MemoryFragment ¶
func SortByAverage ¶ added in v0.4.0
func SortByAverage(fragments []MemoryFragment) []MemoryFragment
func SortByScore ¶ added in v0.4.0
func SortByScore(fragments []MemoryFragment) []MemoryFragment
func TopFragmentAvg ¶
func TopFragmentAvg(fragments []MemoryFragment) MemoryFragment
TopFragmentAvg returns the fragment with the highest average score
func TopFragmentScore ¶
func TopFragmentScore(fragments []MemoryFragment) MemoryFragment
TopFragmentScore returns the fragment with the highest score
Click to show internal directories.
Click to hide internal directories.