cmd

package
v0.0.0-...-29862f0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: GPL-3.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const ExtensionEncryptedClientHello = 0xfe0d

Variables

This section is empty.

Functions

func Curve25519Genkey

func Curve25519Genkey(StdEncoding bool, input_base64 string)

func Execute

func Execute() error

func GenerateKey

func GenerateKey() (string, string, error)

func RandStringRunes

func RandStringRunes(n int) string

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 Addresses

type Addresses struct {
	V4 string `json:"v4"`
	V6 string `json:"v6"`
}

type EchCipher

type EchCipher struct {
	KDFID  uint16
	AEADID uint16
}

EchCipher represents a cipher suite for ECH

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 Extension

type Extension struct {
	Type uint16
	Data []byte
}

Extension represents a TLS extension

type Peer

type Peer struct {
	PublicKey string `json:"public_key"`
	Endpoint  struct {
		V4   string `json:"v4"`
		V6   string `json:"v6"`
		Host string `json:"host"`
	} `json:"endpoint"`
}

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"`
}

type WarpConfig

type WarpConfig struct {
	ClientID  string `json:"client_id"`
	Peers     []Peer `json:"peers"`
	Interface struct {
		Addresses Addresses `json:"addresses"`
	} `json:"interface"`
	Services struct {
		HTTPProxy string `json:"http_proxy"`
	} `json:"services"`
}

Jump to

Keyboard shortcuts

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