Write accepts two channels. The event channel receives events pushed by the event consumer. When the event is peeked from the channel, it is serialized and written to the underlying byte buffer.
(<-chan *event.Event, <-chan error)
| 45 | // When the event is peeked from the channel, it is serialized and written to the underlying |
| 46 | // byte buffer. |
| 47 | Write(<-chan *event.Event, <-chan error) chan error |
| 48 | // Close disposes all resources allocated by the writer. |
| 49 | Close() error |
| 50 | } |
no outgoing calls