openaiReverse

package
v0.0.0-...-5c42bcd Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResult

type AuthResult struct {
	AccessToken string `json:"access_token"`
	PUID        string `json:"puid"`
}

type Authenticator

type Authenticator struct {
	EmailAddress       string
	Password           string
	Proxy              string
	Session            tls_client.HttpClient
	UserAgent          string
	State              string
	URL                string
	Verifier_code      string
	Verifier_challenge string
	AuthResult         AuthResult
}

func NewAuthenticator

func NewAuthenticator(emailAddress, password, proxy string) *Authenticator

func (*Authenticator) Begin

func (auth *Authenticator) Begin() *Error

func (*Authenticator) GetAccessToken

func (auth *Authenticator) GetAccessToken() string

func (*Authenticator) GetAuthResult

func (auth *Authenticator) GetAuthResult() AuthResult

func (*Authenticator) GetPUID

func (auth *Authenticator) GetPUID() (string, *Error)

func (*Authenticator) URLEncode

func (auth *Authenticator) URLEncode(str string) string

type Error

type Error struct {
	Location   string
	StatusCode int
	Details    string
	Error      error
}

func NewError

func NewError(location string, statusCode int, details string, err error) *Error

Jump to

Keyboard shortcuts

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