Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultPageSize = "100"
)
Variables ¶
This section is empty.
Functions ¶
func WriteHTTPErrorResponse ¶
func WriteHTTPErrorResponse(rw http.ResponseWriter, err error)
func WriteJSON ¶
func WriteJSON(rw http.ResponseWriter, data interface{}) error
func WritePagingResponse ¶
func WritePagingResponse(rw http.ResponseWriter, req *http.Request, data interface{}) error
Types ¶
type ErrorResponse ¶
type PagePagingResponse ¶
type PageResponse ¶
type PageResponse struct { Data interface{} `json:"data" example:"{'item1', 'item2', 'item3'}" swaggertype:"array,string"` Paging PagePagingResponse `json:"paging"` }
Click to show internal directories.
Click to hide internal directories.