Documentation ¶
Index ¶
Constants ¶
View Source
const ( Stdio = "stdio" Inet = "inet" Unix = "unix" DNS = "dns" Rpath = "rpath" Wpath = "wpath" Cpath = "cpath" Tmppath = "tmppath" )
Common promises for pledge()
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
ListenAndServe starts a FastCGI server listening on a Unix domain socket and restricts further operations using OpenBSD's pledge() mechanism. The supplied handler will be used to handle incoming requests. If handler is nil the http.DefaultServeMux will be used. By default the process will be unable to perform any syscalls except for those required to communicate via the created socket (equivalent to supplying "stdio" and "unix" promises).
Types ¶
Click to show internal directories.
Click to hide internal directories.