Documentation ¶
Index ¶
- type Analyzer
- type DB
- type Document
- func (d *Document) Analyze(analyzers []Analyzer) bool
- func (d Document) BleveType() string
- func (d *Document) Content() string
- func (d *Document) GetField(name string) string
- func (d *Document) IsImage() bool
- func (d *Document) Mime() string
- func (d *Document) Name() string
- func (d *Document) SetContent(content string)
- func (d *Document) SetField(name string, value string)
- func (d *Document) String() string
- func (d *Document) Type() string
- func (d *Document) UpdateFileInfo(fileInfo os.FileInfo)
- type Queue
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { Bleve bleve.Index Storm *storm.DB Queue Queue // contains filtered or unexported fields }
DB database instance
func (*DB) AddDocumentAnalyzer ¶
AddDocumentAnalyzer ...
func (*DB) DocumentExists ¶
DocumentExists is true if document already exists
type Document ¶
type Document struct { Path string `json:"path" storm:"id"` Analysis map[string]time.Time `json:"analysis"` Modified time.Time `json:"modified"` Size int64 `json:"size"` Fields map[string]string `json:"fields"` }
Document ...
func NewDocument ¶
NewDocument ...
func (*Document) UpdateFileInfo ¶
UpdateFileInfo updates properties from file info
Click to show internal directories.
Click to hide internal directories.