Start work on hooks and subscriptions

This commit is contained in:
Daniel 2018-09-13 21:54:20 +02:00
parent 1c7f98d9ba
commit 2c70416873
14 changed files with 482 additions and 177 deletions

View file

@ -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{}),
}
}