Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TLSVersion ¶
func TLSVersion(cs *tls.ConnectionState) string
Types ¶
type ExtensionFunc ¶
type ExtensionFunc func(*http.Request) ([]ExtensionResult, error)
type ExtensionResult ¶
type Extensions ¶
type Extensions []ExtensionFunc
func (Extensions) GetResult ¶
func (es Extensions) GetResult(r *http.Request) []ExtensionResult
type KubernetesResult ¶
type RequestResult ¶
type RequestResult struct {
Protocol string `json:"protocol"`
TLSVersion string `json:"tls_version"`
RemoteAddr string `json:"remote_addr"`
Method string `json:"method"`
URI string `json:"uri"`
ParsedURL ParsedURL `json:"parsed_url"`
Headers map[string][]string `json:"headers"`
}
func GetRequestResult ¶
func GetRequestResult(r *http.Request) RequestResult
type Result ¶
type Result struct {
Kubernetes KubernetesResult `json:"kubernetes"`
Request RequestResult `json:"request"`
Runtime RuntimeResult `json:"runtime"`
Extensions []ExtensionResult `json:"extensions"`
}
func FromContext ¶
type RuntimeResult ¶
type RuntimeResult struct {
GoVersion string `json:"go_version"`
GoArch string `json:"go_arch"`
GoOS string `json:"go_os"`
NumCPUs int `json:"num_cpus"`
NumGoroutines int `json:"num_goroutines"`
MainModule string `json:"main_module"`
MainPath string `json:"main_path"`
MainVersion string `json:"main_version"`
}
func GetRuntimeResult ¶
func GetRuntimeResult() RuntimeResult
Click to show internal directories.
Click to hide internal directories.