luci: go.chromium.org/luci/resultdb/internal/pagination Index | Files

package pagination

import "go.chromium.org/luci/resultdb/internal/pagination"

Index

Package Files

pagination.go

func AdjustPageSize Uses

func AdjustPageSize(pageSize int32) int

AdjustPageSize takes the given requested pageSize and adjusts as necessary.

func ParseToken Uses

func ParseToken(token string) ([]string, error)

ParseToken extracts a string slice position from the given page token.

func Token Uses

func Token(pos ...string) string

Token converts an string slice representing page token position to an opaque token string.

func ValidatePageSize Uses

func ValidatePageSize(pageSize int32) error

ValidatePageSize returns a non-nil error if pageSize is invalid. Returns nil if pageSize is 0.

Package pagination imports 4 packages (graph) and is imported by 3 packages. Updated 2019-12-14. Refresh now. Tools for package owners.