cmd

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Execute

func Execute()

Types

type CloudStatus added in v0.8.0

type CloudStatus struct {
	TunnelName string        `json:"tunnel_name"`
	TunnelID   string        `json:"tunnel_id"`
	Running    bool          `json:"running"`
	PID        int           `json:"pid,omitempty"`
	Routes     []RouteStatus `json:"routes"`
}

CloudStatus Cloud 模式状态

type RelayStatus added in v0.8.0

type RelayStatus struct {
	Server  string       `json:"server"`
	Running bool         `json:"running"`
	PID     int          `json:"pid,omitempty"`
	Rules   []RuleStatus `json:"rules"`
}

RelayStatus Relay 模式状态

type RouteStatus added in v0.8.0

type RouteStatus struct {
	Name     string `json:"name"`
	Hostname string `json:"hostname"`
	Service  string `json:"service"`
	Auth     bool   `json:"auth"`
}

RouteStatus 路由状态

type RuleStatus added in v0.8.0

type RuleStatus struct {
	Name       string `json:"name"`
	Proto      string `json:"proto"`
	LocalPort  int    `json:"local_port"`
	RemotePort int    `json:"remote_port,omitempty"`
	Domain     string `json:"domain,omitempty"`
}

RuleStatus 规则状态

type StatusOutput added in v0.8.0

type StatusOutput struct {
	Cloud *CloudStatus `json:"cloud,omitempty"`
	Relay *RelayStatus `json:"relay,omitempty"`
}

StatusOutput status 命令的结构化输出

Jump to

Keyboard shortcuts

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