proxy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "proxy",
	Usage: "start temporary Proxy server",

	Category: utility.Category,

	Flags: []cli.Flag{
		app.PortFlag(""),
		&cli.StringFlag{
			Name:  "username",
			Usage: "proxy username",
		},
		&cli.StringFlag{
			Name:  "password",
			Usage: "proxy password",
		},
	},

	Action: func(c *cli.Context) error {
		port := app.MustPortOrRandom(c, "", 3128)

		username := c.String("username")
		password := c.String("password")

		return runProxy(c.Context, port, username, password)
	},
}

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