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) + type ListEncoder struct + Base *Encoder + Flatten bool + ListName string + func (e *ListEncoder) ListAddFields(m protocol.FieldMarshaler) + func (e *ListEncoder) ListAddList(fn func(le protocol.ListEncoder)) + func (e *ListEncoder) ListAddMap(fn func(me protocol.MapEncoder)) + func (e *ListEncoder) ListAddValue(v protocol.ValueMarshaler) + type MapEncoder struct + Base *Encoder + Flatten bool + KeyName string + ValueName string + func (e *MapEncoder) MapSetFields(k string, m protocol.FieldMarshaler) + func (e *MapEncoder) MapSetList(k string, fn func(le protocol.ListEncoder)) + func (e *MapEncoder) MapSetMap(k string, fn func(me protocol.MapEncoder)) + func (e *MapEncoder) MapSetValue(k string, v protocol.ValueMarshaler)