Documentation ¶
Index ¶
- Variables
- func ProtobufParamsDecoder(raw json.RawMessage, params interface{}) error
- func ProtobufReplyEncoder(reply interface{}) ([]byte, error)
- func StdParamsDecoder(raw json.RawMessage, params interface{}) error
- func StdReplyEncoder(reply interface{}) ([]byte, error)
- type CodecType
- type ParamDecoder
- type ReplyEncoder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultProtoMarshal = &runtime.JSONPb{ MarshalOptions: protojson.MarshalOptions{ EmitUnpopulated: true, UseEnumNumbers: false, UseProtoNames: true, }, UnmarshalOptions: protojson.UnmarshalOptions{ DiscardUnknown: true, }, } )
Functions ¶
func ProtobufParamsDecoder ¶
func ProtobufParamsDecoder(raw json.RawMessage, params interface{}) error
func ProtobufReplyEncoder ¶
func StdParamsDecoder ¶
func StdParamsDecoder(raw json.RawMessage, params interface{}) error
func StdReplyEncoder ¶
Types ¶
type ParamDecoder ¶
type ParamDecoder func(raw json.RawMessage, params interface{}) error
func GetParamDecoder ¶
func GetParamDecoder(c CodecType) ParamDecoder
type ReplyEncoder ¶
func GetReplyEncoder ¶
func GetReplyEncoder(c CodecType) ReplyEncoder
Click to show internal directories.
Click to hide internal directories.