tunnelcmd

package
v2.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(di *dix.Dix) *redant.Command

New 创建 tunnel gateway 命令

Types

type Config

type Config struct {
	Tunnel *TunnelConfig `yaml:"tunnel"`
}

Config 配置结构

type TunnelConfig

type TunnelConfig struct {
	// ListenAddr Agent 连接监听地址
	ListenAddr string `yaml:"listen_addr" default:":7007"`
	// HTTPPort HTTP 代理端口
	HTTPPort int `yaml:"http_port" default:"8888"`
	// GRPCPort gRPC 代理端口
	GRPCPort int `yaml:"grpc_port" default:"9999"`
	// DebugPort Debug 代理端口
	DebugPort int `yaml:"debug_port" default:"6066"`
}

TunnelConfig Tunnel Gateway 配置

Jump to

Keyboard shortcuts

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