Documentation
¶
Overview ¶
Package pagination provides utilities for paginating database query results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToken ¶
DecodeToken decodes an opaque page token into its name and filter parts.
func EncodeToken ¶
EncodeToken encodes a name + filter to an opaque page token
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher suggests dynamic batch sizes for list queries.
func NewBatcher ¶
NewBatcher creates a new batcher for the given requested page size.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package internal contains go:generate directives for pagination proto definitions.
|
Package internal contains go:generate directives for pagination proto definitions. |
Click to show internal directories.
Click to hide internal directories.