代码拉取完成,页面将自动刷新
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)
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。