Documentation ¶
Index ¶
- func GetArray(r *http.Request, argKey string) []string
- func GetBool(r *http.Request, argKey string) bool
- func GetDenyPartialResponse(r *http.Request) bool
- func GetDuration(r *http.Request, argKey string, defaultValue int64) (int64, error)
- func GetInt(r *http.Request, argKey string) (int, error)
- func GetTime(r *http.Request, argKey string, defaultMs int64) (int64, error)
- func TLSConfig(certFile, keyFile, caFile, serverName string, insecureSkipVerify bool) (*tls.Config, error)
- func Transport(URL, certFile, keyFile, caFile, serverName string, insecureSkipVerify bool) (*http.Transport, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArray ¶
GetArray returns an array of comma-separated values from r arg with the argKey name.
func GetDenyPartialResponse ¶
GetDenyPartialResponse returns whether partial responses are denied.
func GetDuration ¶
GetDuration returns duration in milliseconds from the given argKey query arg.
func GetTime ¶
GetTime returns time in milliseconds from the given argKey query arg.
If argKey is missing in r, then defaultMs rounded to seconds is returned. The rounding is needed in order to align query results in Grafana executed at different times. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/720
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.