refreshandforward

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:   "refresh-and-forward",
	Flags:  Flags,
	Action: clitools.CheckGlobalRequired(refreshAndForward, global.RequiredFlags),
	Usage: "Behaves the same way as refresh, but it also forwards " +
		"all requests to the provided host (the main container.)",
}
View Source
var Flags = append(
	refresh.Flags,
	cli.IntFlag{
		Name:   "http-port",
		EnvVar: "HTTP_PORT",
		Value:  8000,
		Usage:  "Port from to forward http requests.",
	},
	cli.StringFlag{
		Name:   "forward-host",
		EnvVar: "FORWARD_HOST",
		Value:  "localhost:8080",
		Usage:  "Host address to which all requests should be forwarded.",
	},
	cli.StringFlag{
		Name:   "forward-scheme",
		EnvVar: "FORWARD_SCHEME",
		Value:  "https",
		Usage:  `Scheme to use for forwarding the requests ("http" or "https").`,
	},
	cli.DurationFlag{
		Name:   "forward-timeout",
		EnvVar: "FORWARD_TIMEOUT",
		Value:  3 * time.Second,
		Usage:  `Timeout for request forward.`,
	},
)

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