Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = errors.New(400, "Token failed", "The field `page_token` is invalid") ErrOverdueToken = errors.New(400, "Token overdue", "The field `page_token` is overdue") ErrOverMaxPageSizeToken = errors.New(400, "Token over max page size", "The field `page_token` is over max page size") ErrInvalidPageSize = errors.New(400, "PageSize failed", "The page size provided must not be negative.") )
Functions ¶
This section is empty.
Types ¶
type PageToken ¶
type PageToken interface { TokenGenerator ProcessPageTokens }
func NewTokenGenerate ¶
func NewTokenGenerate(options ...TokenOption) PageToken
type ProcessPageTokens ¶
type TokenGenerator ¶
type TokenOption ¶
type TokenOption func(*token)
func SetTokenTimeLimitation ¶
func SetTokenTimeLimitation(timeLimitation time.Duration) TokenOption
SetTokenTimeLimitation .
Click to show internal directories.
Click to hide internal directories.