Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvalidToken ¶
InvalidToken annotates the error with InvalidArgument appstatus.
func ParseToken ¶
ParseToken extracts a string slice position from the given page token. May return an appstatus-annotated error.
func Token ¶
Token converts an string slice representing page token position to an opaque token string.
func ValidatePageSize ¶
ValidatePageSize returns a non-nil error if pageSize is invalid. Returns nil if pageSize is 0.
Types ¶
type PageSizeLimiter ¶
func (*PageSizeLimiter) Adjust ¶
func (psl *PageSizeLimiter) Adjust(pageSize int32) int32
Adjust the requested pageSize according to PageSizeLimiter.Max and PageSizeLimiter.Default as necessary.
Click to show internal directories.
Click to hide internal directories.