entity

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	ID                   uint64 `boltholdKey:"ID"`
	URL                  string
	Info                 PageInfo
	Tags                 []string
	PreserveTitle        bool
	TimestampCreated     time.Time
	TimestampLastScraped time.Time
}

func (Bookmark) DisplayTitle added in v0.1.1

func (bm Bookmark) DisplayTitle() string

func (Bookmark) Type added in v0.1.0

func (bm Bookmark) Type() string

type BookmarkInfo added in v0.0.30

type BookmarkInfo struct {
	Bookmarks int
}

type BookmarkSearchResult added in v0.1.0

type BookmarkSearchResult struct {
	Bookmark  Bookmark
	Score     float64
	Highlight template.HTML
}

type Config

type Config struct {
	BaseURL string
	Version int
}

type DBStats added in v0.0.30

type DBStats struct {
	History   map[time.Time]BookmarkInfo
	FileSize  int
	IndexSize int
	Searches  int
}

func (DBStats) MostRecentBookmarkInfo added in v0.0.31

func (stats DBStats) MostRecentBookmarkInfo() BookmarkInfo

func (DBStats) String added in v0.0.30

func (stats DBStats) String() string

type PageInfo

type PageInfo struct {
	Fetched    time.Time
	Title      string
	Size       int
	StatusCode int
	RawText    string
}

func (PageInfo) Type added in v0.1.0

func (pi PageInfo) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL