From a21225563a11900be63121ff3249c3095b079938 Mon Sep 17 00:00:00 2001
From: Declan Teevan
Date: Thu, 29 Oct 2026 11:59:28 +0000
Subject: [PATCH] feat(pkg): add stub internal pagination models
Signed-off-by: Declan Teevan
---
internal/pkg/pagination/pagination.go | 31 +++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 internal/pkg/pagination/pagination.go
diff --git a/internal/pkg/pagination/pagination.go b/internal/pkg/pagination/pagination.go
new file mode 100644
index 0000000..b430d2a
--- /dev/null
+++ b/internal/pkg/pagination/pagination.go
@@ -0,0 +1,31 @@
+// Copyright (C) 2024 Declan Teevan
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
+package pagination
+
+// TODO: implementing pagination utilities
+type InternalPaginationSortData struct {
+ // NOTE: randomly generated for maintaining order on routes
+ // without an existing order mechanic (to minimise repeat
+ // results with pagination; continuing upon previous queries).
+ cursorId string
+}
+
+type InternalPaginationData struct {
+ limit uint32
+ offset *uint32
+
+ ordering *InternalPaginationSortData
+}