lib

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const EnvScript = "SCRIPT"

EnvScript is the name of the environment variable to configure the script to execute.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	Script []string
	Addr   string
}

Opts are the options parsed from the command line and environment variable.

func ParseConfig

func ParseConfig() Opts

ParseConfig parses options from arguments and environment variables.

type Server

type Server struct {
	Opts
}

Server is a simple proxy server to pipe HTTP requests to a subprocess' stdin and the subprocess' stdout to the HTTP response.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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