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 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
type FastJson ¶
type FastJson struct {
// contains filtered or unexported fields
}
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
type Msgp ¶
type Msgp struct {
// contains filtered or unexported fields
}
type MsgpArray ¶
type MsgpArray struct {
// contains filtered or unexported fields
}
type Msgpack ¶
type Msgpack struct {
// contains filtered or unexported fields
}
type Pickle ¶
type Pickle struct {
// contains filtered or unexported fields
}
type Response ¶
Source Files
¶
- error.go
- fast_json.go
- json.go
- msgp.go
- msgpack.go
- pickle.go
- response.go
Click to show internal directories.
Click to hide internal directories.