Documentation ¶
Index ¶
- Constants
- func AddScores(res []search.SearchResult, query string) []search.SearchResult
- func BatchDuplicateResults(slice []search.SearchResult) []search.SearchResult
- func ConstructLink(path string) string
- func ExtractContentAndMetadata(out io.Reader) []search.SearchResult
- func GetReadwiseHighlights(txt string) string
- func IsReadwiseResult(title string) bool
- func UnmarshalEntriesFromCSV(in *os.File) ([]*readwiseEntry, error)
- type BookmarkSearcher
- type BrowserHistorySearcher
- type FileSearch
- type GoogleDriveClient
- type InstapaperParser
- type PeopleParser
- type ReadwiseCSVParser
- type TwitterParser
Constants ¶
View Source
const AppConfigPath = "../appconfig.json" // TODO move
Variables ¶
This section is empty.
Functions ¶
func AddScores ¶
func AddScores(res []search.SearchResult, query string) []search.SearchResult
func BatchDuplicateResults ¶
func BatchDuplicateResults(slice []search.SearchResult) []search.SearchResult
func ConstructLink ¶
func ExtractContentAndMetadata ¶
func ExtractContentAndMetadata(out io.Reader) []search.SearchResult
func GetReadwiseHighlights ¶
func IsReadwiseResult ¶
func UnmarshalEntriesFromCSV ¶
Types ¶
type BookmarkSearcher ¶
type BookmarkSearcher struct {
// contains filtered or unexported fields
}
func NewBookmarkSearcher ¶
func NewBookmarkSearcher(bookmarkBashPath string) *BookmarkSearcher
func (BookmarkSearcher) Search ¶
func (b BookmarkSearcher) Search(query string) ([]search.SearchResult, error)
type BrowserHistorySearcher ¶
type BrowserHistorySearcher struct {
// contains filtered or unexported fields
}
func NewBrowserHistorySearcher ¶
func NewBrowserHistorySearcher(bashScriptPath string) *BrowserHistorySearcher
func (BrowserHistorySearcher) Search ¶
func (b BrowserHistorySearcher) Search(query string) ([]search.SearchResult, error)
type FileSearch ¶
func NewFileSearcher ¶
func NewFileSearcher(rgaPath, pathFolder string) *FileSearch
func (FileSearch) Search ¶
func (f FileSearch) Search(query string) ([]search.SearchResult, error)
type GoogleDriveClient ¶
type GoogleDriveClient struct {
// contains filtered or unexported fields
}
func NewGdriveClient ¶
func (GoogleDriveClient) Search ¶
func (client GoogleDriveClient) Search(keywords string) ([]search.SearchResult, error)
type InstapaperParser ¶
func NewInstapaperParser ¶
func NewInstapaperParser(f *os.File) *InstapaperParser
func (InstapaperParser) TransformToData ¶
func (i InstapaperParser) TransformToData() ([]*search.IndexData, error)
type PeopleParser ¶
func NewPeopleParser ¶
func NewPeopleParser(f *os.File) *PeopleParser
func (PeopleParser) TransformToData ¶
func (p PeopleParser) TransformToData() ([]*search.IndexData, error)
type ReadwiseCSVParser ¶
func NewReadwiseCSVParser ¶
func NewReadwiseCSVParser(file *os.File) *ReadwiseCSVParser
func (*ReadwiseCSVParser) Search ¶
func (c *ReadwiseCSVParser) Search(keywords string) ([]search.SearchResult, error)
func (ReadwiseCSVParser) TransformToData ¶
func (c ReadwiseCSVParser) TransformToData() ([]*search.IndexData, error)
TODO refactor to care less about search implementation
type TwitterParser ¶
func (TwitterParser) TransformToData ¶
func (t TwitterParser) TransformToData() ([]*search.IndexData, error)
Click to show internal directories.
Click to hide internal directories.