Documentation ¶
Index ¶
Constants ¶
View Source
const HttpClientClosedRequest = 499
Variables ¶
View Source
var BufferPool = util.NewBufferPool() // used by pickle, fastjson and msgp responses to serialize into
View Source
var ErrMetricNotFound = errors.New("metric not found")
View Source
var RequestCanceledErr = NewError(HttpClientClosedRequest, "request canceled")
Functions ¶
func Write ¶
func Write(w http.ResponseWriter, resp Response)
Types ¶
type Error ¶
type Error interface { //This could have just been `Code`, but that would make it accidentally share an interface with gocql and lead to nonsense HTTP codes //See https://github.com/grafana/metrictank/issues/1678 HTTPStatusCode() int Error() string }
type ErrorResp ¶
type ErrorResp struct {
// contains filtered or unexported fields
}
func WrapErrorForTagDB ¶
graphite's http tagdb client requires a specific error format
func (*ErrorResp) HTTPStatusCode ¶ added in v1.0.0
type FastJson ¶
type FastJson struct {
// contains filtered or unexported fields
}
func NewFastJson ¶
type TagDBError ¶
type TagDBError struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.