Documentation ¶
Overview ¶
Package chrome parses many formats of Chrome data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BookmarkEntry ¶
type BookmarkEntry struct { Children []BookmarkEntry `json:"children"` // for folder type only DateAdded timefmt.QuotedChrome `json:"date_added"` DateModified timefmt.QuotedChrome `json:"date_modified,omitempty"` // for folder type only 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" MetaInfo *BookmarkMetaInfo `json:"meta_info,omitempty"` URL string `json:"url,omitempty"` // for url type only }
BookmarkEntry is either a folder containing further entries or a URL.
type BookmarkMetaInfo ¶
type BookmarkMetaInfo struct {
LastVisitedDesktop timefmt.QuotedChrome `json:"last_visited_desktop"`
}
BookmarkMetaInfo contains additional bookmark metadata.
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 { Checksum jsonutil.Hex `json:"checksum"` Roots BookmarkRoots `json:"roots"` SyncMetadata jsonutil.Base64 `json:"sync_metadata,omitempty"` Version int `json:"version"` // e.g. 1 }
Bookmarks contains Chrome bookmark information.
func ParseBookmarks ¶
ParseBookmarks parses "Bookmarks" in a Chrome profile.
type PageTransition ¶
type PageTransition uint32
PageTransition is a type of transition between pages. A type is made of one core value and a set of zero or more qualifiers.
const ( TransitionFirst PageTransition = TransitionLink TransitionLink PageTransition = 0 TransitionTyped PageTransition = 1 TransitionAutoBookmark PageTransition = 2 TransitionAutoSubframe PageTransition = 3 TransitionManualSubframe PageTransition = 4 TransitionGenerated PageTransition = 5 TransitionAutoToplevel PageTransition = 6 TransitionFormSubmit PageTransition = 7 TransitionReload PageTransition = 8 TransitionKeyword PageTransition = 9 TransitionKeywordGenerated PageTransition = 10 TransitionLastCore PageTransition = TransitionKeywordGenerated TransitionCoreMask PageTransition = 0xFF TransitionFromAPI3 PageTransition = 0x00200000 TransitionFromAPI2 PageTransition = 0x00400000 TransitionBlocked PageTransition = 0x00800000 TransitionForwardBack PageTransition = 0x01000000 TransitionFromAddressBar PageTransition = 0x02000000 TransitionHomePage PageTransition = 0x04000000 TransitionFromAPI PageTransition = 0x08000000 TransitionChainStart PageTransition = 0x10000000 TransitionChainEnd PageTransition = 0x20000000 TransitionClientRedirect PageTransition = 0x40000000 TransitionServerRedirect PageTransition = 0x80000000 TransitionIsRedirectMask PageTransition = 0xC0000000 TransitionQualifierMask PageTransition = 0xFFFFFF00 )
Values for PageTransition:
func PageTransitionFromString ¶
func PageTransitionFromString(typ string) (PageTransition, error)
PageTransitionFromString returns the page transition core value corresponding to the string.
func (PageTransition) MarshalJSON ¶
func (typ PageTransition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (PageTransition) MarshalText ¶
func (typ PageTransition) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler i
func (PageTransition) String ¶
func (typ PageTransition) String() string
func (*PageTransition) UnmarshalJSON ¶
func (typ *PageTransition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*PageTransition) UnmarshalText ¶
func (typ *PageTransition) UnmarshalText(data []byte) error
UnmarshalText implements the encoding.TextUnmarshaler