Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BadRequestErrorHandler = func(w http.ResponseWriter, err error) { writeError(w, err.Error(), http.StatusBadRequest) } InternalErrorHandler = func(w http.ResponseWriter) { writeError(w, "An unexpected error occurred.", http.StatusInternalServerError) } writeError(w, err.Error(), http.StatusUnauthorized) } )
Functions ¶
Types ¶
type QueryParams ¶
type QueryParams struct { FilterParams map[string]string `schema:"-"` GroupBy string `schema:"group_by"` SortBy string `schema:"sort_by"` SortOrder string `schema:"sort_order"` Page int `schema:"page"` Limit int `schema:"limit"` Aggregates []string `schema:"aggregate"` }
func ParseQueryParams ¶
func ParseQueryParams(r *http.Request) (QueryParams, error)
type QueryResponse ¶
Click to show internal directories.
Click to hide internal directories.