request

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (r *Request) HasFilter() bool

HasFilter returns true if there is any filtering criteria in the request

func (*Request) HasSorting

func (r *Request) HasSorting() bool

HasSorting returns true if there are any sorting criteria in the request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL