files

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListBookmarks

func ListBookmarks(profile string) ([]api.BookMark, error)

ParseBookmarks returns the bookmarks in a Chrome profile.

func ListVisitedPagesFromSearchEngineQuery added in v0.0.6

func ListVisitedPagesFromSearchEngineQuery(profile string, options api.ListVisitedPagesFromSearchEngineQueryOptions) ([]api.VisitedPageFromSearchEngineQuery, error)

func ListVisitedPagesFromSourceRepos added in v0.0.12

func ListVisitedPagesFromSourceRepos(profile string, options api.ListVisitedPagesFromSourceReposOptions) ([]api.VisitedPageFromSourceRepos, error)

func SearchEngineQueries added in v0.0.6

func SearchEngineQueries(profile string, options api.SearchEngineOptions) ([]api.SearchEngineQuery, error)

Types

type BookmarkEntry

type BookmarkEntry struct {
	Children     []BookmarkEntry     `json:"children"` // for folder type only
	DateAdded    fields.QuotedChrome `json:"date_added"`
	DateModified fields.QuotedChrome `json:"date_modified,omitempty"` // for folder type only
	DateLastUsed fields.QuotedChrome `json:"date_last_used,omitempty"`
	GUID         *uuid.UUID          `json:"guid"` // "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
	ID           string              `json:"id"`   // e.g. "567"
	Name         string              `json:"name"`
	Type         string              `json:"type"`          // "folder" or "url"
	URL          string              `json:"url,omitempty"` // for url type only
}

type BookmarkRoots

type BookmarkRoots struct {
	BookmarkBar BookmarkEntry `json:"bookmark_bar"` // "Bookmarks" folder
	Other       BookmarkEntry `json:"other"`        // "Other Bookmarks" folder
	Synced      BookmarkEntry `json:"synced"`       // "Mobile Bookmarks" folder
}

BookmarkRoots contains the root level bookmarks folders.

type Bookmarks

type Bookmarks struct {
	Roots BookmarkRoots `json:"roots"`
}

Bookmarks contains Chrome bookmark information.

type LocalState

type LocalState struct {
	Profile LocalStateProfile `json:"profile"`
}

func ReadLocalState

func ReadLocalState() (*LocalState, error)

type LocalStateProfile

type LocalStateProfile struct {
	ProfilesOrder []string `json:"profiles_order"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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