2023-06-06 21:18:40 +02:00
|
|
|
package cursortoken
|
|
|
|
|
|
|
|
import (
|
2024-06-14 17:24:59 +02:00
|
|
|
"context"
|
2023-06-06 21:18:40 +02:00
|
|
|
"go.mongodb.org/mongo-driver/mongo"
|
|
|
|
)
|
|
|
|
|
2023-11-08 18:30:30 +01:00
|
|
|
type RawFilter interface {
|
2024-06-14 17:24:59 +02:00
|
|
|
FilterQuery(ctx context.Context) mongo.Pipeline
|
2023-11-08 18:30:30 +01:00
|
|
|
}
|
|
|
|
|
2023-06-06 21:18:40 +02:00
|
|
|
type Filter interface {
|
2024-06-14 17:24:59 +02:00
|
|
|
FilterQuery(ctx context.Context) mongo.Pipeline
|
|
|
|
Pagination(ctx context.Context) (string, SortDirection, string, SortDirection)
|
2023-06-06 21:18:40 +02:00
|
|
|
}
|