Discover Packages
tkestack.io/tke
pkg
util
page
package
Version:
v1.9.2
Opens a new window with list of versions in this module.
Published: May 30, 2023
License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func DecodeContinue(ctx context.Context, resource, name, continueStr string) (int64, int64, error)
func EncodeContinue(ctx context.Context, resource, name string, start, limit int64) (string, error)
func ParsePageParam(r *restful.Request) (page int, size int)
type ContinueStruct
type Pagination
func ParsePageParam(r *restful.Request) (page int , size int )
ParsePageParam parses page and size from http request.
type ContinueStruct struct {
ClsName string `json:"clsName,omitempty"`
Resource string `json:"resource,omitempty"`
Name string `json:"name,omitempty"`
Start int64 `json:"start,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
type Pagination struct {
}
Pagination contains data for ping items
Pagein returns start and end index by given param.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.