Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePageToken ¶ added in v0.9.0
DecodePageToken converts the given token into a valid timestamp. It returns an error if the token is not a valid representation of a base64-encoded timestamp.
func EncodePageToken ¶ added in v0.9.0
EncodePageToken converts the given timestamp into a base64-encoded page token.
Types ¶
type API ¶
type API[T any] interface { API() T FromAPI(in T) }
API holds a method to convert an underlying implementation to its API counterpart. This method uses generics to support different API entities.
Click to show internal directories.
Click to hide internal directories.