Documentation ¶
Index ¶
Constants ¶
View Source
const ( HostEnvVar = "node" PodEnvVar = "pod" NamespaceEnvVar = "namespace" )
View Source
const (
DefaultCertLifeSpan = 24 * time.Hour * 365
)
Variables ¶
View Source
var (
E = Env{}
)
View Source
var ( F = struct { CertificateLifeSpan time.Duration HTTPPort int HTTPSPort int }{} )
Functions ¶
func RunHTTPServer ¶
RunHTTPServer runs HTTP and HTTPS goroutines and blocks.
Types ¶
type ResponseBody ¶ added in v1.6.0
type ResponseBody struct { Host string `json:"host"` Method string `json:"method"` URI string `json:"uri"` HTTPVersion string `json:"httpVersion"` Time time.Time `json:"time"` K8sEnv Env `json:"k8sEnv"` RemoteAddr string `json:"remoteAddr"` TLS bool `json:"tls"` Header map[string][]string `json:"header"` ServerVersion string `json:"serverVersion"` }
ResponseBody is the structure returned by the echo server.
Click to show internal directories.
Click to hide internal directories.