Documentation
¶
Index ¶
Constants ¶
View Source
const ExtensionEncryptedClientHello = 0xfe0d
Variables ¶
This section is empty.
Functions ¶
func Curve25519Genkey ¶
func GenerateKey ¶
func RandStringRunes ¶
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
AccountType string `json:"account_type"`
Created string `json:"created"`
Updated string `json:"updated"`
PremiumData int `json:"premium_data"`
Quota int `json:"quota"`
Usage int `json:"usage"`
WarpPlus bool `json:"warp_plus"`
ReferralCount int `json:"referral_count"`
ReferralRenewalCount int `json:"referral_renewal_countdown"`
Role string `json:"role"`
License string `json:"license"`
}
type EchConfig ¶
type EchConfig struct {
Version uint16
ConfigID uint8
KemID uint16
PublicKey []byte
SymmetricCipherSuite []EchCipher
MaxNameLength uint8
PublicName []byte
Extensions []Extension
}
EchConfig represents the ECH configuration structure
type Response ¶
type Response struct {
ID string `json:"id"`
Type string `json:"type"`
Model string `json:"model"`
Name string `json:"name"`
Key string `json:"key"`
Account Account `json:"account"`
WarpConfig WarpConfig `json:"config"`
Token string `json:"token"`
Warp bool `json:"warp_enabled"`
Waitlist bool `json:"waitlist_enabled"`
Created string `json:"created"`
Updated string `json:"updated"`
TOS string `json:"tos"`
Place int `json:"place"`
Locale string `json:"locale"`
Enabled bool `json:"enabled"`
InstallID string `json:"install_id"`
FCMToken string `json:"fcm_token"`
SerialNum string `json:"serial_number"`
}
Click to show internal directories.
Click to hide internal directories.