paging

package
v0.4.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePageToken

func DecodePageToken(ctx context.Context, encoded string, secretKey *[32]byte) (string, error)

DecodePageToken takes a base64-encoded, secretbox-encrypted token and returns the searchAfter string. Returns an error if decoding, decryption, or unmarshaling fails.

func EncodePageToken

func EncodePageToken(searchAfter any, secretKey *[32]byte) (string, error)

EncodePageToken takes a JSON-serializable value (e.g., []interface{}, map[string]interface{}, etc), encrypts with secretbox, and returns a secure base64 token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL