mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
18 lines
296 B
Go
18 lines
296 B
Go
package iterator
|
|
|
|
import (
|
|
"github.com/Safing/portbase/database/model"
|
|
)
|
|
|
|
// Iterator defines the iterator structure.
|
|
type Iterator struct {
|
|
Next chan model.Model
|
|
Error error
|
|
}
|
|
|
|
// New creates a new Iterator.
|
|
func New() *Iterator {
|
|
return &Iterator{
|
|
Next: make(chan model.Model, 10),
|
|
}
|
|
}
|