Documentation ¶
Index ¶
- Constants
- type Document
- type SearchResult
- type SearchResultMatch
- type Slide
- type SlideNumberSorter
- type SlideStore
- type SqliteMemoryStore
- func (s *SqliteMemoryStore) GetDocumentPathForSlideId(slideId string) string
- func (s *SqliteMemoryStore) GetIndexPaths() []string
- func (s *SqliteMemoryStore) IsFileModified(path string, modifiedTime time.Time, fileSize int64) bool
- func (s *SqliteMemoryStore) Save(document Document)
- func (s *SqliteMemoryStore) Search(query string) []SearchResult
- func (s *SqliteMemoryStore) SetIndexPaths(paths []string)
Constants ¶
View Source
const IndexPathsSettingKey = "index_paths"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchResult ¶
type SearchResult struct { SlideId string `json:"slideId"` Slide int `json:"slide"` Path string `json:"path"` Thumbnail string `json:"thumbnail"` Match SearchResultMatch `json:"match"` }
type SearchResultMatch ¶
type SlideNumberSorter ¶
type SlideNumberSorter []Slide
func (SlideNumberSorter) Len ¶
func (a SlideNumberSorter) Len() int
func (SlideNumberSorter) Less ¶
func (a SlideNumberSorter) Less(i, j int) bool
func (SlideNumberSorter) Swap ¶
func (a SlideNumberSorter) Swap(i, j int)
type SlideStore ¶
type SqliteMemoryStore ¶
type SqliteMemoryStore struct {
// contains filtered or unexported fields
}
func NewSqliteStore ¶
func NewSqliteStore() *SqliteMemoryStore
func (*SqliteMemoryStore) GetDocumentPathForSlideId ¶
func (s *SqliteMemoryStore) GetDocumentPathForSlideId(slideId string) string
func (*SqliteMemoryStore) GetIndexPaths ¶
func (s *SqliteMemoryStore) GetIndexPaths() []string
func (*SqliteMemoryStore) IsFileModified ¶
func (*SqliteMemoryStore) Save ¶
func (s *SqliteMemoryStore) Save(document Document)
func (*SqliteMemoryStore) Search ¶
func (s *SqliteMemoryStore) Search(query string) []SearchResult
func (*SqliteMemoryStore) SetIndexPaths ¶
func (s *SqliteMemoryStore) SetIndexPaths(paths []string)
Click to show internal directories.
Click to hide internal directories.