Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Pagination *pagination.PaginationRequest Filter interface{} Sort *sort.Criteria }
Request creates a new resource request with criteria to pagination, filter, and sort the results.
func (*Request) ApplyPaginationToSelect ¶
func (r *Request) ApplyPaginationToSelect(sb *squirrel.SelectBuilder) *squirrel.SelectBuilder
ApplyPaginationToSelect applies the pagination to the selectBuilder, if there is a pagination.
func (*Request) HasFilter ¶
HasFilter returns true if there is any filtering criteria in the request
func (*Request) HasSorting ¶
HasSorting returns true if there are any sorting criteria in the request
Click to show internal directories.
Click to hide internal directories.