NewEncoder returns a new JSON encoder that writes values to w.
(w io.Writer)
| 108 | |
| 109 | // NewEncoder returns a new JSON encoder that writes values to w. |
| 110 | func (m *TTNMarshaler) NewEncoder(w io.Writer) runtime.Encoder { |
| 111 | return &TTNEncoder{w: w, inner: m.JSONPb} |
| 112 | } |
| 113 | |
| 114 | // TTNEncoder marshals values to JSON and writes them to an io.Writer. |
| 115 | type TTNEncoder struct { |
no outgoing calls