Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryBadRequest ¶
QueryBadRequest creates and marshals a QueryResult instance with HTTP status BadRequest.
func QueryNotFound ¶
QueryNotFound creates and marshals a QueryResult instance with HTTP status NotFound.
Types ¶
type QueryResult ¶
type QueryResult struct { Status int `json:"status"` Result json.RawMessage `json:"result"` }
QueryResult wraps querier result with HTTP status to return to application.
Click to show internal directories.
Click to hide internal directories.