Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2024 Changes in this version + const SerializationTypeJSON + const SerializationTypeXML + var GCtx context.Context + func Deserialize(ctx context.Context, in []byte, body interface{}) error + func GetRespFromReqHeader(reqHeader *proto.RequestHeader) *proto.ResponseHeader + func InitGlobalContext(env, container, callee string) + func RegisterSerializer(serializationType int, s Serializer) + func Serialize(ctx context.Context, body interface{}) ([]byte, error) + type Codec interface + Decode func(message *codec.Msg, buf []byte) (reqBody []byte, err error) + Encode func(msg *codec.Msg, body []byte) (respBody []byte, err error) + type JSONSerialization struct + func (s *JSONSerialization) Deserialize(in []byte, body interface{}) error + func (s *JSONSerialization) Serialize(body interface{}) ([]byte, error) + type Serializer interface + Deserialize func(in []byte, body interface{}) error + Serialize func(body interface{}) (out []byte, err error) + func GetSerializer(serializationType int) Serializer + type XMLSerialization struct + func (j *XMLSerialization) Deserialize(in []byte, body interface{}) error + func (j *XMLSerialization) Serialize(body interface{}) ([]byte, error)