Versions in this module Expand all Collapse all v0 v0.3.0 Jul 16, 2018 Changes in this version + const DeprecatedHeader + const RetryHeader + const RoutePrefixV1 + const SearchHTTPMethod + const SearchURL + const ServedByHeader + const WarningsHeader + var ErrInvalidParams = errors.New("invalid request params") + func CloseWatcher(ctx context.Context, w http.ResponseWriter) (<-chan bool, <-chan bool) + func DurationToNanosBytes(r io.Reader) ([]byte, error) + func DurationToNanosMap(input map[string]interface{}) (map[string]interface{}, error) + func Error(w http.ResponseWriter, err error, code int) + func IsInvalidParams(err error) bool + func NewSearchHandler(storage storage.Storage) http.Handler + func WriteJSONResponse(w http.ResponseWriter, data interface{}, logger *zap.Logger) + func WriteProtoMsgJSONResponse(w http.ResponseWriter, data proto.Message, logger *zap.Logger) + func WriteUninitializedResponse(w http.ResponseWriter, logger *zap.Logger) + type ParseError struct + func NewParseError(inner error, code int) *ParseError + func (e *ParseError) Code() int + func (e *ParseError) Error() string + func (e *ParseError) Inner() error + type SearchHandler struct + func (h *SearchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)