mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Later layers speak categories and records, and export needs nothing else. Ordering rows once in the exporter fixes Firefox history, written least visited first.
22 lines
469 B
Go
22 lines
469 B
Go
package types
|
|
|
|
import "github.com/moond4rk/hackbrowserdata/internal/category"
|
|
|
|
// Profile identifies one browser profile — a leaf under an installation.
|
|
type Profile struct {
|
|
Name string
|
|
Dir string
|
|
}
|
|
|
|
// ExtractResult pairs a profile with the data extracted from it.
|
|
type ExtractResult struct {
|
|
Profile
|
|
Data *BrowserData
|
|
}
|
|
|
|
// CountResult pairs a profile with its per-category entry counts.
|
|
type CountResult struct {
|
|
Profile
|
|
Counts map[category.Category]int
|
|
}
|