Documentation ¶
Index ¶
Constants ¶
View Source
const ( PagingParam = "paging" OrderByParam = "orderBy" ConditionsParam = "conditions" ReverseParam = "reverse" )
View Source
const ( DefaultLimit = 10 DefaultPage = 1 )
Variables ¶
This section is empty.
Functions ¶
func AtoiOrDefault ¶
func GetBoolValueWithDefault ¶
func ParsePaging ¶
func ParsePaging(req *restful.Request) (limit, offset int)
ParsePaging parse the paging parameters from the request, then returns the limit and offset supported format: ?limit=1&page=1 supported format: ?paging=limit=100,page=1
Types ¶
type Conditions ¶
func ParseConditions ¶
func ParseConditions(req *restful.Request) (*Conditions, error)
Click to show internal directories.
Click to hide internal directories.