Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAIToken ¶
func GetOpenAITokenWithBx ¶ added in v1.9.1
func SetTLSClient ¶
func SetTLSClient(cli *tls_client.HttpClient)
Types ¶
type Challenge ¶
type Challenge struct { SessionToken string `json:"session_token"` ChallengeID string `json:"challengeID"` ChallengeURL string `json:"challengeURL"` AudioChallengeURLs []string `json:"audio_challenge_urls"` AudioGameRateLimited interface{} `json:"audio_game_rate_limited"` Sec int `json:"sec"` EndURL interface{} `json:"end_url"` GameData struct { GameType int `json:"gameType"` GameVariant string `json:"game_variant"` InstructionString string `json:"instruction_string"` CustomGUI struct { ChallengeIMGs []string `json:"_challenge_imgs"` } `json:"customGUI"` } `json:"game_data"` GameSID string `json:"game_sid"` SID string `json:"sid"` Lang string `json:"lang"` StringTablePrefixes []interface{} `json:"string_table_prefixes"` StringTable map[string]string `json:"string_table"` EarlyVictoryMessage interface{} `json:"earlyVictoryMessage"` FontSizeAdjustments interface{} `json:"font_size_adjustments"` StyleTheme string `json:"style_theme"` }
type ConciseChallenge ¶
type Session ¶
type Session struct { Sid string `json:"sid"` SessionToken string `json:"session_token"` Hex string `json:"hex"` ChallengeLogger challengeLogger `json:"challenge_logger"` Challenge Challenge `json:"challenge"` ConciseChallenge ConciseChallenge `json:"concise_challenge"` Headers http.Header `json:"headers"` }
func StartChallenge ¶
func (*Session) RequestChallenge ¶
func (*Session) SubmitAnswer ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.