Documentation ¶
Index ¶
- type Watcher
- func (w *Watcher) Get(key string) (content.Article, error)
- func (w *Watcher) GetAll(pinned bool) []content.Article
- func (w *Watcher) GetDetails() content.Details
- func (w *Watcher) Start(articlesPath string, done chan bool, wg *sync.WaitGroup)
- func (w *Watcher) Update(key string, doc content.Document) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { Logger log.Logger Details content.Details // contains filtered or unexported fields }
Watcher reads documents from the filesystem on whenever it detects they have been updated interval and creates articles from them. Each document is related to an article with a shared key.
func (*Watcher) GetDetails ¶
GetDetails returns the details of the content.
Click to show internal directories.
Click to hide internal directories.