11 Star 11 Fork 0

Gitee 极速下载/goa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/goadesign/goa
克隆/下载
encoding.go 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
Nitin 提交于 2019-03-14 13:57 . Fix appveyor builds (#2040)
package grpc
import (
"context"
"google.golang.org/grpc/metadata"
)
type (
// RequestDecoder is used by the server to decode gRPC request message type
// and any incoming metadata to goa type.
RequestDecoder func(ctx context.Context, pb interface{}, md metadata.MD) (v interface{}, err error)
// RequestEncoder is used by the client to encode goa type to gRPC message
// type and sets the outgoing metadata.
RequestEncoder func(ctx context.Context, v interface{}, md *metadata.MD) (pb interface{}, err error)
// ResponseDecoder is used by the client to decode gRPC response message
// type and any incoming metadata (headers and trailers) to goa type.
ResponseDecoder func(ctx context.Context, pb interface{}, hdr, trlr metadata.MD) (v interface{}, err error)
// ResponseEncoder is used by the server to encode goa type to gRPC response
// message type and sets the response headers and trailers.
ResponseEncoder func(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (pb interface{}, err error)
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/goa.git
git@gitee.com:mirrors/goa.git
mirrors
goa
goa
v2.0.7

搜索帮助