Documentation ¶
Index ¶
- Constants
- func EncodeValue(buf *bytes.Buffer, value Value) error
- func Uint64To4Bytes(i uint64) []byte
- type Array
- type Binary
- type Bool
- type F32
- type F64
- type I32
- type I64
- type Id
- type Map
- func (self *Map) Contains(key string) bool
- func (self Map) Decode(buf *bytes.Buffer) (Value, error)
- func (self Map) Encode(buff *bytes.Buffer) error
- func (self *Map) Extend(other Map)
- func (self *Map) Get(key string) (Value, bool)
- func (self *Map) GetArray(key string) (Array, error)
- func (self *Map) GetBinary(key string) ([]byte, error)
- func (self *Map) GetBool(key string) (bool, error)
- func (self *Map) GetF32(key string) (float32, error)
- func (self *Map) GetF64(key string) (float64, error)
- func (self *Map) GetI32(key string) (int32, error)
- func (self *Map) GetI64(key string) (int64, error)
- func (self *Map) GetMap(key string) (Map, error)
- func (self *Map) GetMapId(key string) (Id, error)
- func (self *Map) GetString(key string) (string, error)
- func (self *Map) GetTimestamp(key string) (int64, error)
- func (self *Map) GetU32(key string) (uint32, error)
- func (self *Map) GetU64(key string) (uint64, error)
- func (self *Map) Insert(key string, value Value)
- func (self *Map) IsNull(key string) bool
- func (self *Map) Len() int
- func (self *Map) Remove(key string) bool
- func (self Map) String() string
- func (self Map) Tag() uint8
- type Messagedeprecated
- type MessageIddeprecated
- type Null
- type String
- type Timestamp
- type U32
- type U64
- type Value
Constants ¶
View Source
const ( MAX_NSON_SIZE = 64 * 1024 * 1024 // 64 MB MIN_NSON_SIZE = 4 + 1 )
View Source
const ( TAG_F32 uint8 = 0x01 TAG_F64 uint8 = 0x02 TAG_I32 uint8 = 0x03 TAG_I64 uint8 = 0x04 TAG_U32 uint8 = 0x05 TAG_U64 uint8 = 0x06 TAG_STRING uint8 = 0x07 TAG_ARRAY uint8 = 0x08 TAG_MAP uint8 = 0x09 TAG_BOOL uint8 = 0x0A TAG_NULL uint8 = 0x0B TAG_BINARY uint8 = 0x0C TAG_TIMESTAMP uint8 = 0x0D TAG_ID uint8 = 0x0E // Deprecated: use TAG_MAP TAG_MESSAGE uint8 = TAG_MAP // Deprecated: use TAG_ID TAG_MESSAGE_ID uint8 = TAG_ID )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Id ¶ added in v0.7.0
type Id []byte
Click to show internal directories.
Click to hide internal directories.