Перенести актуальную lab2 как базу lab3

This commit is contained in:
Vladislav Agapov
2026-10-16 11:42:02 +03:00
parent 0ab3a341aa
commit a57cbcf329
150 changed files with 10826 additions and 71 deletions
+12
View File
@@ -0,0 +1,12 @@
package service
import "gitea.privcloud.tech/vlad_marlo/mtusi2026lab3/internal/cursor"
// CursorCodec defines the pagination operations required by application services.
type CursorCodec interface {
// Encode signs a position for the specified resource.
Encode(resource string, position cursor.Position) (string, error)
// Decode verifies a token and returns its position; empty tokens start a page sequence.
Decode(encoded, resource string) (cursor.Position, error)
}