Versions in this module Expand all Collapse all v9 v9.1.0 Jan 26, 2024 v9.0.0 Oct 27, 2023 Changes in this version + const InvalidValue + func GetListAndCursor(raw []T, sg PageSizeGetter) ([]T, T) + func GetNextPageTokenFromTime(t time.Time) string + func NewPageToken(input encoding.TextMarshaler) string + func PageSize(req PageSizeGetter, opts ...PageSizeOptions) int32 + func ParsePageTokenToTime(token string) (time.Time, error) + func WriteResponse(w http.ResponseWriter, res PagingResponse) error + type PageSizeGetter interface + GetPageSize func() int32 + type PageSizeOptions struct + DefaultSize int32 + MaxSize int32 + type PageTokenGetter interface + GetPageToken func() string + type Pagination interface + type PagingLinks struct + First *url.URL + Last *url.URL + Next *url.URL + Previous *url.URL + func (p PagingLinks) ToLinkHeaders() []string + type PagingRequest struct + Page uint64 + PageSize uint64 + func ReadRequest(r *http.Request) PagingRequest + type PagingResponse struct + BaseURL *url.URL + Count uint64 + Page uint64 + PageSize uint64 + TotalCount uint64 + func (r PagingResponse) ToPagingLinks() PagingLinks Other modules containing this package github.com/gazebo-web/gz-go/v10 github.com/gazebo-web/gz-go/v7 github.com/gazebo-web/gz-go/v8