Versions in this module Expand all Collapse all v0 v0.3.1 Oct 30, 2026 Changes in this version + func ExtractItems(raw json.RawMessage, key string) []json.RawMessage + func FromLimit(pageSize int) func(*PageState, map[string]string) + func IndexRange(pageSize int) func(*PageState, map[string]string) + func PageOffsetLimit(pageSize int) func(*PageState, map[string]string) + func PagePerPage(pageSize int) func(*PageState, map[string]string) + func Paginate(ctx context.Context, cfg PaginationConfig) ([]json.RawMessage, error) + func PaginateCRM(ctx context.Context, client *zohttp.Client, url string, ...) ([]json.RawMessage, error) + func PaginateProjects(ctx context.Context, client *zohttp.Client, url string, itemsKey string, ...) ([]json.RawMessage, error) + func PaginateWorkDrive(ctx context.Context, client *zohttp.Client, url string, ...) ([]json.RawMessage, error) + func SIndexLimit(pageSize int) func(*PageState, map[string]string) + func SetPageCRM(state *PageState, params map[string]string) + func SignPageContext(pageSize int) func(*PageState, map[string]string) + type PageState struct + Offset int + PageNum int + Token string + func HasMoreBooks(raw json.RawMessage, _ int, _ int) (bool, *PageState) + func HasMoreByCount(_ json.RawMessage, fetched int, pageSize int) (bool, *PageState) + func HasMoreCRM(raw json.RawMessage, _ int, _ int) (bool, *PageState) + func HasMoreProjects(raw json.RawMessage, _ int, _ int) (bool, *PageState) + func HasMoreSign(raw json.RawMessage, _ int, _ int) (bool, *PageState) + func HasMoreWorkDrive(raw json.RawMessage, _ int, _ int) (bool, *PageState) + type PaginationConfig struct + Client *zohttp.Client + HasMore func(raw json.RawMessage, fetched int, pageSize int) (bool, *PageState) + ItemsKey string + Limit int + Method string + Opts *zohttp.RequestOpts + PageSize int + SetPage func(state *PageState, params map[string]string) + URL string