Documentation
¶
Overview ¶
Package dcgi implements CGI (Common Gateway Interface), but running inside Docker containers.
Based off https://golang.org/pkg/net/http/cgi/ Copyright 2011 The Go Authors. All rights reserved. https://github.com/golang/go/blob/master/LICENSE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Client *client.Client // Docker client to use
Image string // Docker image to run
HostConfig *container.HostConfig
Root string // root URI prefix of handler or empty for "/"
Env []string // extra environment variables to set, if any, as "key=value"
InheritEnv []string // environment variables to inherit from host, as "key"
Logger *log.Logger // optional log for errors or nil to use log.Print
Args []string // optional arguments to pass to child process
// PathLocationHandler specifies the root http Handler that
// should handle internal redirects when the CGI process
// returns a Location header value starting with a "/", as
// specified in RFC 3875 § 6.3.2. This will likely be
// http.DefaultServeMux.
//
// If nil, a CGI response with a local URI path is instead sent
// back to the client and not redirected internally.
PathLocationHandler http.Handler
}
Handler runs an executable in a subprocess with a CGI environment.
Click to show internal directories.
Click to hide internal directories.