history

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package history lets you fetch history data from all common browsers databases. The New.. methods return a new HistoryGrabber that implements the Grabber interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromiumGrabber

type ChromiumGrabber struct {
	HistoryGrabber
	// contains filtered or unexported fields
}

ChromiumGrabber is a grabber for chromium history entries.

func NewChromiumGrabber

func NewChromiumGrabber(profile browserutils.ProfileDir, date time.Time) (*ChromiumGrabber, error)

NewChromiumGrabber returns a new History grabber that grabs history from the given date. If you specify date to be nil, it will grab all the History from the db.

func (*ChromiumGrabber) Close

func (c *ChromiumGrabber) Close() error

Close closes the connected history database.

func (*ChromiumGrabber) Err

func (c *ChromiumGrabber) Err() error

Err returns the error, if any that was encountered during iteration.

func (*ChromiumGrabber) Next

func (c *ChromiumGrabber) Next() bool

Next fetches the next History.

func (*ChromiumGrabber) Scan

func (c *ChromiumGrabber) Scan(dest interface{}) error

Scan copies the columns in the current row into the History pointed at by dest. The dest var must be of type History or else the method will fail.

type History

type History struct {
	URL         string
	Title       string
	VisitCount  int
	LastVisited time.Time
}

History represents the history from the database of the browserutils.

type HistoryGrabber

type HistoryGrabber interface {
	Iterate() <-chan History
	brograb.Grabber
}

HistoryGrabber extends the Grabber interface, for bookmarks specific grabbing.

Jump to

Keyboard shortcuts

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