Documentation
¶
Index ¶
Constants ¶
View Source
const ( NilFormat byte = 0xc0 + iota NeverUsedFormat FalseFormat TrueFormat Bin8Format Bin16Format Bin32Format Ext8Format Ext16Format Ext32Format Float32Format Float64Format Uint8Format Uint16Format Uint32Format Uint64Format Int8Format Int16Format Int32Format Int64Format FixExt1Format FixExt2Format FixExt4Format FixExt8Format FixExt16Format Str8Format Str16Format Str32Format Array16Format Array32Format Map16Format Map32Format )
First Byte of each format.
https://github.com/msgpack/msgpack/blob/master/spec.md#overview
Variables ¶
This section is empty.
Functions ¶
func RegisterExt ¶
RegisterExt register user defined ext format.
func RegisterFluentdEventTime ¶
func RegisterFluentdEventTime()
RegisterFluentdEventTime registers Fluentd ext timestamp format. https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1 */
Types ¶
type ExtFormat ¶
type ExtFormat struct {
FirstByte byte
ExtType int8
TypeName string
DecodeFunc func([]byte) string
}
ExtFormat represents Ext Format.
type MPObject ¶
type MPObject struct {
FirstByte byte
TypeName string
ExtType int8 /* for ext family*/
Length uint32 /* for map, array and str family*/
DataStr string
Raw []byte
Child []*MPObject
}
MPObject represents message pack object. If the object is array or map, MPObject has Child which represents each element.
Click to show internal directories.
Click to hide internal directories.