Search backend: extract eventWriter
Created by: camdencheek
This creates a new type eventWriter
that wraps streamhttp.Writer
with typed methods. I think this is preferable to the jumble of closures
we currently have, and it will also make it easier for me to continue
refactoring this in preparation for extending the API with chunk
matches.
Test plan
Unit tests + backend integration tests + manual smoke tests