Documentation
¶
Index ¶
- Constants
- func Error(r *http.Request, w http.ResponseWriter, msg string, err error, code int)
- func NewHTTPClient(gCtx *config.Context) (*http.Client, error)
- func NewTransport(gCtx *config.Context) *http.Transport
- func Write(r *http.Request, w http.ResponseWriter, content []byte)
- func WriteJSON(r *http.Request, w http.ResponseWriter, content any)
- type LoggedHTTPRoundTripper
Constants ¶
View Source
const UserAgent = "grafanactl"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoggedHTTPRoundTripper ¶
type LoggedHTTPRoundTripper struct {
DecoratedTransport http.RoundTripper
}
Click to show internal directories.
Click to hide internal directories.