mirror of
https://github.com/mainnika/mongox-go-driver.git
synced 2026-05-22 15:53:36 +00:00
LoadStream function
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package query
|
||||
|
||||
// Limiter is a filter to limit the result
|
||||
type Limiter interface {
|
||||
Limit() int
|
||||
}
|
||||
|
||||
// Limit is a simple implementation of the Limiter filter
|
||||
type Limit int
|
||||
|
||||
var _ Limiter = Limit(0)
|
||||
|
||||
// Limit returns a limit
|
||||
func (l Limit) Limit() int {
|
||||
|
||||
return int(l)
|
||||
}
|
||||
Reference in New Issue
Block a user