sub

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DisablePrintColor bool
)

Functions

func Execute

func Execute() error

func NewAdminCommand

func NewAdminCommand(name, short string, handler func(*v1.ClientCommonConfig) error) *cobra.Command

func NewProxyCommand

func NewProxyCommand(name string, c v1.ProxyConfigurer, clientCfg *v1.ClientCommonConfig) *cobra.Command

func NewVisitorCommand

func NewVisitorCommand(name string, c v1.VisitorConfigurer, clientCfg *v1.ClientCommonConfig) *cobra.Command

func ReloadHandler

func ReloadHandler(clientCfg *v1.ClientCommonConfig) error

func StatusHandler

func StatusHandler(clientCfg *v1.ClientCommonConfig) error

func StopHandler

func StopHandler(clientCfg *v1.ClientCommonConfig) error

Types

type Pagination

type Pagination struct {
	Page     int64 `json:"page"`
	PageSize int64 `json:"page_size"`
	Pages    int64 `json:"pages"`
	Total    int64 `json:"total"`
}

type Response

type Response struct {
	Code       int64             `json:"code"`
	Msg        string            `json:"msg"`
	Pagination Pagination        `json:"pagination"`
	Tunnel     map[string]Tunnel `json:"tunnel"`
}

type Tunnel

type Tunnel struct {
	Data       string `json:"data"`
	Domains    string `json:"Domains"`
	ID         int64  `json:"Id"`
	Link       string `json:"Link"`
	LocalIP    string `json:"LocalIp"`
	LocalPort  int64  `json:"LocalPort"`
	NodeID     int64  `json:"NodeId"`
	NodeName   string `json:"NodeName"`
	ProxyName  string `json:"ProxyName"`
	ProxyType  string `json:"ProxyType"`
	RemotePort int64  `json:"RemotePort"`
	Status     string `json:"Status"`
	Timestamp  string `json:"Timestamp"`
	Type       string `json:"Type"`
}

Jump to

Keyboard shortcuts

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