proxy

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 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(ctx context.Context, cmd *cli.Command) error {
		port := app.MustPortOrRandom(ctx, cmd, "", 3128)

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

		return runProxy(ctx, 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