Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppEnv struct { Dummy string }
AppEnv contains variables from env
View Source
var AppFlag struct { HTTPPort int HTTPSPort int }
AppFlag contains variables from command-line flags
Functions ¶
func RunHTTPServer ¶
RunHTTPServer runs HTTP and HTTPS goroutines and blocks.
Types ¶
type Response ¶
type Response struct { Host string `json:"host"` Method string `json:"method"` URI string `json:"uri"` HTTPVersion string `json:"httpVersion"` Time time.Time `json:"time"` RemoteAddr string `json:"remoteAddr"` TLS bool `json:"tls"` Header map[string][]string `json:"header"` Msg string `json:"message"` }
Response is the structure returned by the echo server.
Click to show internal directories.
Click to hide internal directories.