goext/cursortoken/filter.go

16 lines
315 B
Go
Raw Normal View History

2023-06-06 21:18:40 +02:00
package cursortoken
import (
"context"
2023-06-06 21:18:40 +02:00
"go.mongodb.org/mongo-driver/mongo"
)
type RawFilter interface {
FilterQuery(ctx context.Context) mongo.Pipeline
}
2023-06-06 21:18:40 +02:00
type Filter interface {
FilterQuery(ctx context.Context) mongo.Pipeline
Pagination(ctx context.Context) (string, SortDirection, string, SortDirection)
2023-06-06 21:18:40 +02:00
}