cmd

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func GenerateKey

func GenerateKey() (error, string, string)

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 Config

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

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

Directories

Path Synopsis
distro
all

Jump to

Keyboard shortcuts

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