Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "oneshot [flags]... [file]", Version: fmt.Sprintf(": %s\ndate: %s\nauthor: Raphael Reyna\n", version, date), Short: "A single-fire HTTP server.", Long: `Start an HTTP server which will only serve files once. The first client to connect is given the file, all others receive an HTTP 410 Gone response code. If no file is given, oneshot will instead serve from stdin and hold the clients connection until receiving the EOF character. `, Run: run, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.