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 TokenGeneratorWithSalt ¶
func TokenGeneratorWithSalt(salt string) TokenGenerator
Click to show internal directories.
Click to hide internal directories.