Versions in this module Expand all Collapse all v0 v0.0.2 Sep 5, 2019 Changes in this version + var ErrBatchDoesNotExist = utils.APIError + var ErrColumnDeleted = utils.APIError + var ErrColumnDoesNotExist = utils.APIError + var ErrFailedToJSONMarshalResponseBody = utils.APIError + var ErrMissingParameter = utils.APIError + var ErrMsgDeletedColumn = "Bad request: column is already deleted" + var ErrMsgFailedToJSONMarshalResponseBody = "Failed to marshal the response body into json" + var ErrMsgFailedToReadRequestBody = "Bad request: failed to read request body" + var ErrMsgFailedToUnmarshalRequest = "Bad request: failed to unmarshal request body" + var ErrMsgMissingParameter = "Bad request: missing/invalid parameter" + var ErrMsgNonExistentColumn = "Bad request: column does not exist" + var ErrMsgNonExistentTable = "Bad request: table does not exist" + var ErrMsgNotImplemented = "Not implemented" + var ErrNotImplemented = utils.APIError + var ErrTableDoesNotExist = utils.APIError + func ReadRequest(r *http.Request, obj interface{}) error + func Respond(w http.ResponseWriter, obj interface{}) + func RespondBytesWithCode(w http.ResponseWriter, code int, bs []byte) + func RespondJSONObjectWithCode(w http.ResponseWriter, code int, obj interface{}) + func RespondWithBadRequest(w http.ResponseWriter, err error) + func RespondWithError(w http.ResponseWriter, err error) + func RespondWithJSONBytes(w http.ResponseWriter, jsonBytes []byte, err error) + func RespondWithJSONObject(w http.ResponseWriter, jsonObj interface{}) + type AQLRequest struct + Accept string + Body queryCom.AQLRequest + DataOnly int + Debug int + Device int + DeviceChoosingTimeout int + Origin string + Profiling string + Query string + Verbose int + type AQLResponse struct + Body queryCom.AQLResponse + type ErrorResponse struct + Body utils.APIError + type NoContentResponse struct + type RequestContext struct + Accept string + Debug int + Device int + DeviceChoosingTimeout int + Origin string + Profiling string + Verbose int + type SQLRequest struct + Accept string + Body struct{ ... } + Debug int + Device int + DeviceChoosingTimeout int + Origin string + Profiling string + Verbose int + type StringArrayResponse struct + Body []string + func NewStringArrayResponse() StringArrayResponse