v0.0.641 Handle cursortokens with non-decodable values gracefully
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m20s

This commit is contained in:
2026-05-22 22:06:05 +02:00
parent e12764c0a2
commit fad2e4ff6d
8 changed files with 190 additions and 32 deletions
+9
View File
@@ -7,14 +7,23 @@ import (
ct "git.blackforestbytes.com/BlackForestBytes/goext/cursortoken"
"git.blackforestbytes.com/BlackForestBytes/goext/exerr"
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
"go.mongodb.org/mongo-driver/v2/bson"
"go.mongodb.org/mongo-driver/v2/mongo"
)
type EntityID interface {
MarshalBSONValue() (byte, []byte, error)
IsZero() bool
String() string
}
type MongoEntityID interface {
EntityID
ObjID() (bson.ObjectID, error)
Valid() bool
}
type Decodable interface {
Decode(v any) error
}