commands

package
v0.0.0-...-efede0b Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tunnel = &cli.Command{
		Name:  "tunnel",
		Usage: "Tunnel",
		Subcommands: []*cli.Command{
			{
				Name:   "server",
				Usage:  "Tunnel Server",
				Action: actions.TunnelServer,
				Flags: []cli.Flag{
					&cli.StringFlag{
						Name:     "listen",
						Usage:    "Listen address",
						Required: true,
						EnvVars: []string{
							"TUNNEL_SERVER_LISTEN_ADDRESS",
						},
					},
					&cli.StringFlag{
						Name:     "target",
						Usage:    "Proxy server address",
						Required: true,
						EnvVars: []string{
							"PROXY_SERVER_TARGET_ADDRESS",
						},
					},
				},
			},
			{
				Name:   "client",
				Usage:  "Tunnel Client",
				Action: actions.TunnelClient,
				Flags: []cli.Flag{
					&cli.StringFlag{
						Name:     "listen",
						Usage:    "Listen address",
						Required: true,
						EnvVars: []string{
							"TUNNEL_SERVER_LISTEN_ADDRESS",
						},
					},
					&cli.StringFlag{
						Name:     "target",
						Usage:    "Proxy server address",
						Required: true,
						EnvVars: []string{
							"PROXY_SERVER_TARGET_ADDRESS",
						},
					},
				},
			},
		},
	}

	Proxy = &cli.Command{
		Name:   "proxy",
		Usage:  "Proxy",
		Action: actions.ProxyServer,
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:     "listen",
				Usage:    "Listen address",
				Required: true,
				EnvVars: []string{
					"PROXY_SERVER_LISTEN_ADDRESS",
				},
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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