Documentation ¶
Index ¶
Constants ¶
const ( Cookie = "cookie" History = "history" Bookmark = "bookmark" )
Variables ¶
This section is empty.
Functions ¶
func ListBrowser ¶
func ListBrowser() []string
Types ¶
type Browser ¶
type Browser interface { // InitSecretKey is init chrome secret key, firefox's key always empty InitSecretKey() error // GetName return browser name GetName() string // GetSecretKey return browser secret key GetSecretKey() []byte // GetAllItems return all items (password|Bookmark|Cookie|History) GetAllItems() ([]data.Item, error) // GetItem return single one from the password|Bookmark|Cookie|History GetItem(itemName string) (data.Item, error) }
func NewChromium ¶
NewChromium return Chromium browser interface
func NewFirefox ¶
NewFirefox return firefox browser interface
func PickBrowser ¶
PickBrowser return a list of browser interface
func PickCustomBrowser ¶
PickCustomBrowser pick single browser with custom browser profile path and key file path (windows only). If custom key file path is empty, but the current browser requires key file (chromium for windows version > 80) key file path will be automatically found in the profile path's parent directory.
type Chromium ¶
type Chromium struct {
// contains filtered or unexported fields
}
func (*Chromium) GetAllItems ¶
GetAllItems return all chromium items from browser if can't find the item path, log error then continue
func (*Chromium) GetSecretKey ¶
func (*Chromium) InitSecretKey ¶
type Firefox ¶
type Firefox struct {
// contains filtered or unexported fields
}
func (*Firefox) GetAllItems ¶
GetAllItems return all item with firefox
func (*Firefox) GetSecretKey ¶
GetSecretKey for firefox is always nil this method used to implement Browser interface
func (*Firefox) InitSecretKey ¶
InitSecretKey for firefox is always nil this method used to implement Browser interface