Documentation ¶
Index ¶
- func ReadRaw(rawMsg msgp.Raw) string
- type FluentMsg
- type FluentRawMsg
- type FluentRecord
- func (z *FluentRecord) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *FluentRecord) EncodeMsg(en *msgp.Writer) (err error)
- func (z *FluentRecord) MarshalMsg(b []byte) (o []byte, err error)
- func (z *FluentRecord) Msgsize() (s int)
- func (z *FluentRecord) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FluentMsg ¶
type FluentMsg struct { Tag msgp.Raw Time int64 Record FluentRecord Option map[string]interface{} }
FluentMsg is a single Message Event of Forward protocol
type FluentRawMsg ¶
FluentRawMsg uses raw byte buffers for efficient caching and zero allocations in unmarshalling
func (*FluentRawMsg) DecodeMsg ¶
func (z *FluentRawMsg) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*FluentRawMsg) MarshalMsg ¶
func (z *FluentRawMsg) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*FluentRawMsg) Msgsize ¶
func (z *FluentRawMsg) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type FluentRecord ¶
type FluentRecord struct { //ContainerId string `msg:"container_id"` ContainerName msgp.Raw `msg:"container_name"` Log msgp.Raw `msg:"log"` }
FluentRecord is a subset of record hash such as: - Unmapped fields are ignored - Using 'raw' to avoid allocations
func (*FluentRecord) DecodeMsg ¶
func (z *FluentRecord) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*FluentRecord) EncodeMsg ¶
func (z *FluentRecord) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*FluentRecord) MarshalMsg ¶
func (z *FluentRecord) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*FluentRecord) Msgsize ¶
func (z *FluentRecord) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*FluentRecord) UnmarshalMsg ¶
func (z *FluentRecord) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler