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