Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseStatistics ¶
type DatabaseStatistics struct { NumberOfFiles int `json:"number_of_files"` KeywordCount int `json:"number_of_keywords"` }
DatabaseStatistics contains some small statistic numbers from the amount of content in the system
type KeywordResult ¶
KeywordResult is a single result, pointing to a BookID and a Filename inside this book which has the keyword
type Store ¶
type Store struct { FileName string // contains filtered or unexported fields }
Store is the store for keywords
func (*Store) FetchIndex ¶
FetchIndex downloads the index file, decodes it and requests it to be added to the store
func (*Store) GetStatistics ¶
func (i *Store) GetStatistics() DatabaseStatistics
GetStatistics reads the statistics from the db storage and returns them
func (*Store) LookupKeyword ¶
func (i *Store) LookupKeyword(keyword string) []KeywordResult
LookupKeyword looks up the keyword in the store, and returns a slice of KeywordResult
Click to show internal directories.
Click to hide internal directories.