Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadRouting = errors.New("inconsistent mapping between route and handler")
)
自定义错误类型
Functions ¶
func GRPCToContext ¶
func GRPCToContext() grpctransport.ServerRequestFunc
GRPCToContext 将GRPC中的metadata信息转换为上下文信息
func HTTPToContext ¶
func HTTPToContext() httptransport.RequestFunc
HTTPToContext 将HTTP中的header信息转换为上下文信息
func NewGRPCServer ¶
NewGRPCServer 新建GRPC服务器方法
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.