Documentation ¶ Index ¶ type Response func NewClient() (*http.Client, *Response) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Response ¶ type Response struct { PrivateKeyEncrypted string `xml:"privatekeyenc,attr"` Token string `xml:"token,attr"` EncryptionKey []byte } Response contains fields which got parsed from the response of the /login.php endpoint. func NewClient ¶ func NewClient() (*http.Client, *Response) NewClient reads the executable's username and password arguments and authenticates with the LastPass servers. It returns an http.Client with the cookie set returned by LastPass and a Response containing parsed fields from the /login.php response. Source Files ¶ View all Source files login.go Click to show internal directories. Click to hide internal directories.