Versions in this module Expand all Collapse all v0 v0.0.1 Oct 18, 2022 Changes in this version + var ErrMarshallingProto = errors.New("can not serialize the object") + var ErrUnknownMarshalizer = errors.New("unknown marshalizer") + var ErrUnmarshallingBadSize = errors.New("imput buffer too long") + var ErrUnmarshallingProto = errors.New("obj does not implement proto.Message") + var MarshalizersAvailableForTesting = map[string]Marshalizer + type GogoProtoMarshalizer struct + func (x *GogoProtoMarshalizer) IsInterfaceNil() bool + func (x *GogoProtoMarshalizer) Marshal(obj interface{}) ([]byte, error) + func (x *GogoProtoMarshalizer) Unmarshal(obj interface{}, buff []byte) error + type GogoProtoObj interface + type JsonMarshalizer struct + func (jm *JsonMarshalizer) IsInterfaceNil() bool + func (jm JsonMarshalizer) Marshal(obj interface{}) ([]byte, error) + func (jm JsonMarshalizer) Unmarshal(obj interface{}, buff []byte) error + type Marshalizer interface + IsInterfaceNil func() bool + Marshal func(obj interface{}) ([]byte, error) + Unmarshal func(obj interface{}, buff []byte) error + func NewSizeCheckUnmarshalizer(m Marshalizer, maxDelta uint32) Marshalizer + type Sizer interface + Size func() (n int) + type TxJsonMarshalizer struct + func (t *TxJsonMarshalizer) IsInterfaceNil() bool + func (t *TxJsonMarshalizer) Marshal(obj interface{}) ([]byte, error) + func (t *TxJsonMarshalizer) Unmarshal(obj interface{}, buff []byte) error