Versions in this module Expand all Collapse all v1 v1.0.0 Dec 25, 2022 Changes in this version + type BsonEncoder struct + func (*BsonEncoder) Decode(data []byte, vPtr interface{}) error + func (*BsonEncoder) Encode(vPtr interface{}) ([]byte, error) + type Encode struct + func New() *Encode + func (e *Encode) GetBsonEncoder() (Encoder, error) + func (e *Encode) GetGobEncoder() (Encoder, error) + func (e *Encode) GetJsonEncoder() (Encoder, error) + func (e *Encode) GetProtoEncoder() (Encoder, error) + func (e *Encode) RegisterEncoder(encoderType EncodeType, encoder Encoder) + type EncodeType int + const BSON + const GOB + const JSON + const PROTO + type Encoder interface + Decode func(data []byte, vPtr interface{}) error + Encode func(data interface{}) ([]byte, error) + type GobEncoder struct + func (*GobEncoder) Decode(data []byte, vPtr interface{}) error + func (*GobEncoder) Encode(vPtr interface{}) ([]byte, error) + type JsonEncoder struct + func (*JsonEncoder) Decode(data []byte, vPtr interface{}) error + func (*JsonEncoder) Encode(vPtr interface{}) ([]byte, error) + type ProtoEncoder struct + func (*ProtoEncoder) Decode(data []byte, vPtr interface{}) error + func (*ProtoEncoder) Encode(vPtr interface{}) ([]byte, error)