Documentation
¶
Index ¶
- func NewDefaultPaginatorParamsParser() *defaultPaginatorParamsParser
- func NewPaginatorParamsParser(limitParam, offsetParam, orderByParam, prevPageValuesParam string, ...) *defaultPaginatorParamsParser
- type OrderByParam
- type OrderByParams
- type OrderByParseFunc
- type PaginatorParams
- type PaginatorParamsParser
- type PrevPageValues
- type PrevPageValuesParseFunc
- type QueryParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultPaginatorParamsParser ¶
func NewDefaultPaginatorParamsParser() *defaultPaginatorParamsParser
func NewPaginatorParamsParser ¶
func NewPaginatorParamsParser(limitParam, offsetParam, orderByParam, prevPageValuesParam string, orderByParse OrderByParseFunc, prevPageValuesParse PrevPageValuesParseFunc) *defaultPaginatorParamsParser
Types ¶
type OrderByParam ¶
type OrderByParams ¶
type OrderByParams = []*OrderByParam
func DefaultOrderByParse ¶
func DefaultOrderByParse(params QueryParams, orderByParam string) (orderByParams OrderByParams, err error)
type OrderByParseFunc ¶
type OrderByParseFunc = func(params QueryParams, orderByParam string) (orderByParams OrderByParams, err error)
type PaginatorParams ¶
type PaginatorParams struct { Limit int Offset int OrderBy OrderByParams PrevPage PrevPageValues }
type PaginatorParamsParser ¶
type PaginatorParamsParser interface {
ParseQuery(query string) (params PaginatorParams, err error)
}
type PrevPageValues ¶
type PrevPageValues = map[string]interface{}
func DefaultPrevPageValuesParse ¶
func DefaultPrevPageValuesParse(params QueryParams, prevPageValueParam string) (prevPageValues PrevPageValues, err error)
type PrevPageValuesParseFunc ¶
type PrevPageValuesParseFunc = func(params QueryParams, prevPageValueParam string) (prevPageValues PrevPageValues, err error)
type QueryParams ¶
Click to show internal directories.
Click to hide internal directories.