Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectAll ¶
func CollectAll[T any](ctx context.Context, pageFn func(context.Context, uint32, string) ([]T, string, error), pageSize uint32) ([]T, error)
CollectAll invokes pageFn repeatedly to retrieve all pages and returns a combined slice of results. Pagination stops when pageFn returns an empty nextToken. The pageFn callback must have the form:
pageFn(ctx, pageSize, token) → (items, nextToken, error)
func MarshalPageToken ¶
MarshalPageToken encodes one or more args into a URL-safe base64 token.
func UnmarshalPageToken ¶
UnmarshalPageToken decodes a token into the provided pointers in order.
func ValidPageSize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.