mirror of
https://github.com/safing/portbase
synced 2026-05-01 21:21:23 +00:00
Start work on hooks and subscriptions
This commit is contained in:
parent
1c7f98d9ba
commit
2c70416873
14 changed files with 482 additions and 177 deletions
|
|
@ -7,6 +7,7 @@ import (
|
|||
// Iterator defines the iterator structure.
|
||||
type Iterator struct {
|
||||
Next chan record.Record
|
||||
Done chan struct{}
|
||||
Error error
|
||||
}
|
||||
|
||||
|
|
@ -14,5 +15,6 @@ type Iterator struct {
|
|||
func New() *Iterator {
|
||||
return &Iterator{
|
||||
Next: make(chan record.Record, 10),
|
||||
Done: make(chan struct{}),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue