community

package
v0.0.0-...-351fa73 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: BSD-3-Clause Imports: 17 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptPassword

func EncryptPassword(N string, E string, password string) (string, error)

func GenerateDeviceID

func GenerateDeviceID(accountName string, password string) string

func GenerateSessionID

func GenerateSessionID() (string, error)

func SetCookies

func SetCookies(client *http.Client, cookies []*http.Cookie) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

func (*Client) GetCookies

func (c *Client) GetCookies(u *url.URL) []*http.Cookie

func (*Client) GetDeviceID

func (c *Client) GetDeviceID() string

func (*Client) GetRSAKey

func (c *Client) GetRSAKey(accountName string) (*getRSAKeyRes, error)

func (*Client) GetSessionID

func (c *Client) GetSessionID() string

func (*Client) GetSteamID

func (c *Client) GetSteamID() string

func (*Client) Login

func (c *Client) Login(details LoginDetails) error

func (*Client) SetProxy

func (c *Client) SetProxy(proxy string) error

type LoginDetails

type LoginDetails struct {
	AccountName   string
	Password      string
	TwoFactorCode string
}

Jump to

Keyboard shortcuts

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