Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2021 Changes in this version + const CborStreamArray + const CborStreamBreak + const CborStreamBytes + const CborStreamMap + const CborStreamString + const GenVersion + var GoRpc goRpc + var MsgpackSpecRpc msgpackSpecRpc + func GenHelperDecoder(d *Decoder) (gd genHelperDecoder, dd genHelperDecDriver) + func GenHelperEncoder(e *Encoder) (ge genHelperEncoder, ee genHelperEncDriver) + type BasicHandle struct + TypeInfos *TypeInfos + func (o *BasicHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (o *BasicHandle) Intf2Impl(intf, impl reflect.Type) (err error) + func (o *BasicHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + type BincHandle struct + AsSymbols uint8 + func (h *BincHandle) Name() string + func (h *BincHandle) SetBytesExt(rt reflect.Type, tag uint64, ext BytesExt) (err error) + func (o *BincHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (o *BincHandle) Intf2Impl(intf, impl reflect.Type) (err error) + func (o *BincHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + type BytesExt interface + ReadExt func(dst interface{}, src []byte) + WriteExt func(v interface{}) []byte + type CborHandle struct + IndefiniteLength bool + TimeRFC3339 bool + func (h *CborHandle) Name() string + func (h *CborHandle) SetInterfaceExt(rt reflect.Type, tag uint64, ext InterfaceExt) (err error) + func (o *CborHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (o *CborHandle) Intf2Impl(intf, impl reflect.Type) (err error) + func (o *CborHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + type DecodeOptions struct + DeleteOnNilMapValue bool + ErrorIfNoArrayExpand bool + ErrorIfNoField bool + InterfaceReset bool + InternString bool + MapType reflect.Type + MapValueReset bool + MaxInitLen int + PreferArrayOverSlice bool + ReaderBufferSize int + SignedInteger bool + SliceElementReset bool + SliceType reflect.Type + type Decoder struct + func NewDecoder(r io.Reader, h Handle) *Decoder + func NewDecoderBytes(in []byte, h Handle) *Decoder + func (d *Decoder) Decode(v interface{}) (err error) + func (d *Decoder) MustDecode(v interface{}) + func (d *Decoder) Reset(r io.Reader) + func (d *Decoder) ResetBytes(in []byte) + type EncodeOptions struct + Canonical bool + ChanRecvTimeout time.Duration + CheckCircularRef bool + Raw bool + RecursiveEmptyCheck bool + StructToArray bool + WriterBufferSize int + type Encoder struct + func NewEncoder(w io.Writer, h Handle) *Encoder + func NewEncoderBytes(out *[]byte, h Handle) *Encoder + func (e *Encoder) Encode(v interface{}) (err error) + func (e *Encoder) MustEncode(v interface{}) + func (e *Encoder) Reset(w io.Writer) + func (e *Encoder) ResetBytes(out *[]byte) + type Ext interface + type Handle interface + Name func() string + type InterfaceExt interface + ConvertExt func(v interface{}) interface{} + UpdateExt func(dst interface{}, src interface{}) + type JsonHandle struct + HTMLCharsAsIs bool + Indent int8 + IntegerAsString byte + MapKeyAsString bool + PreferFloat bool + RawBytesExt InterfaceExt + TermWhitespace bool + func (h *JsonHandle) Name() string + func (h *JsonHandle) SetInterfaceExt(rt reflect.Type, tag uint64, ext InterfaceExt) (err error) + func (o *JsonHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (o *JsonHandle) Intf2Impl(intf, impl reflect.Type) (err error) + func (o *JsonHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + type MapBySlice interface + MapBySlice func() + type MsgpackHandle struct + NoFixedNum bool + RawToString bool + WriteExt bool + func (h *MsgpackHandle) Name() string + func (h *MsgpackHandle) SetBytesExt(rt reflect.Type, tag uint64, ext BytesExt) (err error) + func (o *MsgpackHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (o *MsgpackHandle) Intf2Impl(intf, impl reflect.Type) (err error) + func (o *MsgpackHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + type MsgpackSpecRpcMultiArgs []interface + type RPCOptions struct + RPCNoBuffer bool + type Raw []byte + type RawExt struct + Data []byte + Tag uint64 + Value interface{} + type Rpc interface + ClientCodec func(conn io.ReadWriteCloser, h Handle) rpc.ClientCodec + ServerCodec func(conn io.ReadWriteCloser, h Handle) rpc.ServerCodec + type Selfer interface + CodecDecodeSelf func(*Decoder) + CodecEncodeSelf func(*Encoder) + type SimpleHandle struct + EncZeroValuesAsNil bool + func (h *SimpleHandle) Name() string + func (h *SimpleHandle) SetBytesExt(rt reflect.Type, tag uint64, ext BytesExt) (err error) + func (o *SimpleHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (o *SimpleHandle) Intf2Impl(intf, impl reflect.Type) (err error) + func (o *SimpleHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + type TypeInfos struct + func NewTypeInfos(tags []string) *TypeInfos