Versions in this module Expand all Collapse all v1 v1.11.0 Dec 6, 2022 Changes in this version + type Encoder struct + func NewEncoder() *Encoder + func (e *Encoder) Encode() (io.ReadSeeker, error) + func (e *Encoder) SetFields(t protocol.Target, k string, m protocol.FieldMarshaler, meta protocol.Metadata) + func (e *Encoder) SetList(t protocol.Target, k string, fn func(le protocol.ListEncoder), ...) + func (e *Encoder) SetMap(t protocol.Target, k string, fn func(me protocol.MapEncoder), ...) + func (e *Encoder) SetStream(t protocol.Target, k string, v protocol.StreamMarshaler, ...) + func (e *Encoder) SetValue(t protocol.Target, k string, v protocol.ValueMarshaler, meta protocol.Metadata)