Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoJSONEncoder ¶
func ProtoJSONEncoder(w http.ResponseWriter, r *http.Request, v interface{}) error
ProtoJSONEncoder 编码 HTTP 响应。 仅当客户端协商结果为 JSON 且响应值为 protobuf 消息时,使用自定义 JSON 编码以数字形式输出 64 位整数。 其他场景保持 Kratos 默认 codec 行为,避免破坏内容协商和非 protobuf 响应。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.