v0.0.641 Handle cursortokens with non-decodable values gracefully
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m20s
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m20s
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user