Closed maestre3d closed 3 years ago
Not required since an encoder must be custom (not just JSON). In addition, a decoder would override the current EventWriter.Write()
implementation and would remove the Context.Context
variable required for scenarios such as distributed tracing.
Is your feature request related to a problem? Please describe. When a developer want to encode/decode his responses and incoming events using encoders like Go's
encoding/json
, the developer must do it manually.Describe the solution you'd like Implement the
io.Writer
interface on EventWriter andio.Reader
interface on the Event struct so any encoder that uses these interfaces may be used like this: