Documentation
¶
Index ¶
- Variables
- func Execute() error
- func NewAdminCommand(name, short string, handler func(*v1.ClientCommonConfig) error) *cobra.Command
- func NewProxyCommand(name string, c v1.ProxyConfigurer, clientCfg *v1.ClientCommonConfig) *cobra.Command
- func NewVisitorCommand(name string, c v1.VisitorConfigurer, clientCfg *v1.ClientCommonConfig) *cobra.Command
- func ReloadHandler(clientCfg *v1.ClientCommonConfig) error
- func StatusHandler(clientCfg *v1.ClientCommonConfig) error
- func StopHandler(clientCfg *v1.ClientCommonConfig) error
- type Pagination
- type Response
- type Tunnel
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DisablePrintColor bool
)
Functions ¶
func NewAdminCommand ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.