entrypoint

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entrypoint

func Entrypoint(args LaunchArgs) int

Entrypoint implements the actual functionality of the program so it can be called inline from testing. env is normally passed the environment variable array.

Types

type LaunchArgs

type LaunchArgs struct {
	StdIn  io.Reader
	StdOut io.Writer
	StdErr io.Writer
	Env    map[string]string
	Args   []string
}

type Options

type Options struct {
	Logging struct {
		Level  string `help:"logging level" default:"warning"`
		Format string `help:"logging format (${enum})" enum:"console,json" default:"console"`
	} `embed:"" prefix:"logging."`

	Config string `help:"File to load config from" default:"proxyreverse.yml"`

	Assets assets.Config `embed:"" prefix:"assets." help:"configure embedded asset handling"`

	Version bool `help:"Print the version and exit"`

	ReverseProxy server.ServerCommand `cmd:"" help:"Start proxyreverse server"`
	DumpConfig   struct{}             `cmd:"" help:"Dump active configuration"`
}

Jump to

Keyboard shortcuts

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