Mostly done, first cut
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"html/template"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Bookmark struct {
|
||||
ID uint64 `boltholdKey:"ID"`
|
||||
@@ -12,6 +15,10 @@ type Bookmark struct {
|
||||
TimestampLastScraped time.Time
|
||||
}
|
||||
|
||||
func (bm Bookmark) Type() string {
|
||||
return "bookmark"
|
||||
}
|
||||
|
||||
type PageInfo struct {
|
||||
Fetched time.Time
|
||||
Title string
|
||||
@@ -19,3 +26,13 @@ type PageInfo struct {
|
||||
StatusCode int
|
||||
RawText string
|
||||
}
|
||||
|
||||
func (pi PageInfo) Type() string {
|
||||
return "info"
|
||||
}
|
||||
|
||||
type BookmarkSearchResult struct {
|
||||
Bookmark Bookmark
|
||||
Score float64
|
||||
Highlight template.HTML
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user