Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidTokenErr = status.Errorf(codes.InvalidArgument, "The field `page_token` is invalid.")
InvalidTokenErr is the error returned if the token provided is not parseable by the TokenGenerator.
Functions ¶
This section is empty.
Types ¶
type TokenGenerator ¶
TokenGenerator generates a page token for a given index.
func NewTokenGenerator ¶
func NewTokenGenerator() TokenGenerator
NewTokenGenerator provides a new instance of a TokenGenerator.
func TokenGeneratorWithSalt ¶
func TokenGeneratorWithSalt(salt string) TokenGenerator
TokenGeneratorWithSalt provieds an instance of a TokenGenerator which uses the given salt.
Directories ¶
Path | Synopsis |
---|---|
name
Package name deals with parsing and formatting resource names used in the Library API
|
Package name deals with parsing and formatting resource names used in the Library API |
name
Package name deals with parsing and formatting resource names used in the Library API
|
Package name deals with parsing and formatting resource names used in the Library API |
Click to show internal directories.
Click to hide internal directories.