Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardError ¶
ForwardError writes err to the response if it's in `apierror.APIError` format. Otherwise, appends it to the fallback APIError's message.
func WriteAsJSON ¶
func WriteAsJSON(v interface{}, writer http.ResponseWriter, httpCode ...int)
WriteAsJSON writes a given value `v` to a given http.ResponseWritter forcing `content-type application/json`. Optional httpCode parameter can be given to also write a specific status code.
Types ¶
type Paginator ¶
type Paginator struct { paginator.Paginator // contains filtered or unexported fields }
Paginator structure.
func NewPaginator ¶
NewPaginator creates new instance of Paginator
Click to show internal directories.
Click to hide internal directories.