extractors

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildExtractorList

func BuildExtractorList() ([]types.Extractor, error)

Build a list of relevant extractors for this system @todo If we want to go multi platform this is currently the place to specify the logic to determine paths on a per-platform basis. The extractors should all Just Work if they are pointed to an appropriate sqlite db.

func FindChromiumDBs

func FindChromiumDBs(root string) ([]string, error)

func FindFirefoxDBs

func FindFirefoxDBs(root string) ([]string, error)

func FindHistoryTrendsDBs

func FindHistoryTrendsDBs(root string) ([]string, error)

Types

type BrowserParrotExtractor

type BrowserParrotExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*BrowserParrotExtractor) GetAllUrlsSince

func (a *BrowserParrotExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*BrowserParrotExtractor) GetAllVisitsSince

func (a *BrowserParrotExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

Persistory / browser parrot does not map visits properly as of this commit

func (*BrowserParrotExtractor) GetDBPath

func (a *BrowserParrotExtractor) GetDBPath() string

func (*BrowserParrotExtractor) GetName

func (a *BrowserParrotExtractor) GetName() string

func (*BrowserParrotExtractor) SetDBPath

func (a *BrowserParrotExtractor) SetDBPath(s string)

func (*BrowserParrotExtractor) VerifyConnection

func (a *BrowserParrotExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

type ChromiumExtractor

type ChromiumExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*ChromiumExtractor) GetAllUrlsSince

func (a *ChromiumExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*ChromiumExtractor) GetAllVisitsSince

func (a *ChromiumExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

func (*ChromiumExtractor) GetDBPath

func (a *ChromiumExtractor) GetDBPath() string

func (*ChromiumExtractor) GetName

func (a *ChromiumExtractor) GetName() string

func (*ChromiumExtractor) SetDBPath

func (a *ChromiumExtractor) SetDBPath(s string)

func (*ChromiumExtractor) VerifyConnection

func (a *ChromiumExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

type FirefoxExtractor

type FirefoxExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*FirefoxExtractor) GetAllUrlsSince

func (a *FirefoxExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*FirefoxExtractor) GetAllVisitsSince

func (a *FirefoxExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

func (*FirefoxExtractor) GetDBPath

func (a *FirefoxExtractor) GetDBPath() string

func (*FirefoxExtractor) GetName

func (a *FirefoxExtractor) GetName() string

func (*FirefoxExtractor) SetDBPath

func (a *FirefoxExtractor) SetDBPath(s string)

func (*FirefoxExtractor) VerifyConnection

func (a *FirefoxExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

type HistoryTrendsExtractor

type HistoryTrendsExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*HistoryTrendsExtractor) GetAllUrlsSince

func (a *HistoryTrendsExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*HistoryTrendsExtractor) GetAllVisitsSince

func (a *HistoryTrendsExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

func (*HistoryTrendsExtractor) GetDBPath

func (a *HistoryTrendsExtractor) GetDBPath() string

func (*HistoryTrendsExtractor) GetName

func (a *HistoryTrendsExtractor) GetName() string

func (*HistoryTrendsExtractor) SetDBPath

func (a *HistoryTrendsExtractor) SetDBPath(s string)

func (*HistoryTrendsExtractor) VerifyConnection

func (a *HistoryTrendsExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

type OrionExtractor

type OrionExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*OrionExtractor) GetAllUrlsSince

func (a *OrionExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*OrionExtractor) GetAllVisitsSince

func (a *OrionExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

func (*OrionExtractor) GetDBPath

func (a *OrionExtractor) GetDBPath() string

func (*OrionExtractor) GetName

func (a *OrionExtractor) GetName() string

func (*OrionExtractor) SetDBPath

func (a *OrionExtractor) SetDBPath(s string)

func (*OrionExtractor) VerifyConnection

func (a *OrionExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

type SafariExtractor

type SafariExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*SafariExtractor) GetAllUrlsSince

func (a *SafariExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*SafariExtractor) GetAllVisitsSince

func (a *SafariExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

func (*SafariExtractor) GetDBPath

func (a *SafariExtractor) GetDBPath() string

func (*SafariExtractor) GetName

func (a *SafariExtractor) GetName() string

func (*SafariExtractor) SetDBPath

func (a *SafariExtractor) SetDBPath(s string)

func (*SafariExtractor) VerifyConnection

func (a *SafariExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

type SigmaOSExtractor

type SigmaOSExtractor struct {
	Name          string
	HistoryDBPath string
}

func (*SigmaOSExtractor) GetAllUrlsSince

func (a *SigmaOSExtractor) GetAllUrlsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.UrlRow, error)

func (*SigmaOSExtractor) GetAllVisitsSince

func (a *SigmaOSExtractor) GetAllVisitsSince(ctx context.Context, conn *sql.DB, since time.Time) ([]types.VisitRow, error)

func (*SigmaOSExtractor) GetDBPath

func (a *SigmaOSExtractor) GetDBPath() string

func (*SigmaOSExtractor) GetName

func (a *SigmaOSExtractor) GetName() string

func (*SigmaOSExtractor) SetDBPath

func (a *SigmaOSExtractor) SetDBPath(s string)

func (*SigmaOSExtractor) VerifyConnection

func (a *SigmaOSExtractor) VerifyConnection(ctx context.Context, conn *sql.DB) (bool, error)

Jump to

Keyboard shortcuts

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