mirror of
https://github.com/safing/portbase
synced 2025-09-16 10:09:49 +00:00
Rename model.Model to record.Record
This commit is contained in:
parent
9b7365376c
commit
d76bfd55dc
23 changed files with 31 additions and 619 deletions
|
@ -1,18 +1,18 @@
|
|||
package iterator
|
||||
|
||||
import (
|
||||
"github.com/Safing/portbase/database/model"
|
||||
"github.com/Safing/portbase/database/record"
|
||||
)
|
||||
|
||||
// Iterator defines the iterator structure.
|
||||
type Iterator struct {
|
||||
Next chan model.Model
|
||||
Next chan record.Record
|
||||
Error error
|
||||
}
|
||||
|
||||
// New creates a new Iterator.
|
||||
func New() *Iterator {
|
||||
return &Iterator{
|
||||
Next: make(chan model.Model, 10),
|
||||
Next: make(chan record.Record, 10),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue