Documentation ¶
Index ¶
- func Debug(msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func HandleLog(next http.Handler) http.Handler
- func HandleLogFunc(next http.HandlerFunc) func(rw http.ResponseWriter, r *http.Request)
- func Logger() logger
- func Warn(msg string, args ...interface{})
- type HTTPLogger
- type Handler
- type Labels
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleLogFunc ¶
func HandleLogFunc(next http.HandlerFunc) func(rw http.ResponseWriter, r *http.Request)
Types ¶
type HTTPLogger ¶
type HTTPLogger struct {
// contains filtered or unexported fields
}
HTTPLogger is a http.RoundTripper that logs requests and responses.
func NewHTTPLogger ¶
func NewHTTPLogger(pluginID string, proxied http.RoundTripper, opts ...Options) *HTTPLogger
NewHTTPLogger creates a new HTTPLogger.
type Handler ¶
type Handler struct {
Plugin plugin
}
func (Handler) CheckHealth ¶
func (h Handler) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (Handler) QueryData ¶
func (h Handler) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
Click to show internal directories.
Click to hide internal directories.