Documentation ¶
Index ¶
- Constants
- func ParsePaginationLimit(event *events.APIGatewayV2HTTPRequest) (*int32, error)
- func ParsePaginationToken(event *events.APIGatewayV2HTTPRequest, keys Stringable) (bool, error)
- func ParseSortBy(event *events.APIGatewayV2HTTPRequest) string
- func ParseSortDesc(event *events.APIGatewayV2HTTPRequest) bool
- func SetPaginationToken(event *events.APIGatewayV2HTTPResponse, keys Stringable) error
- type Stringable
Constants ¶
View Source
const ( LimitHeader string = "x-pagination-limit" LimitQuery string = "pageLimit" LimitMin int32 = 1 LimitMax int32 = 100 )
View Source
const ( SortDescQuery = "sortDesc" SortByQuery = "sortBy" )
View Source
const ( TokenHeader string = "x-pagination-token" TokenQuery string = "pageToken" )
Variables ¶
This section is empty.
Functions ¶
func ParsePaginationLimit ¶
func ParsePaginationLimit(event *events.APIGatewayV2HTTPRequest) (*int32, error)
func ParsePaginationToken ¶
func ParsePaginationToken(event *events.APIGatewayV2HTTPRequest, keys Stringable) (bool, error)
func ParseSortBy ¶
func ParseSortBy(event *events.APIGatewayV2HTTPRequest) string
func ParseSortDesc ¶
func ParseSortDesc(event *events.APIGatewayV2HTTPRequest) bool
func SetPaginationToken ¶
func SetPaginationToken(event *events.APIGatewayV2HTTPResponse, keys Stringable) error
Types ¶
Click to show internal directories.
Click to hide internal directories.