# README
gors
通过注释或者注解快速生成Go语言的Restful服务路由。
# Functions
No description provided by the author
AppendRichRoutes 追加富路由.
AppendRoutes 追加基础路由.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FromContext 从context获取gin.Contenxt.
FromError 解析error为 Error.
Header 从context获取header.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewContext 向context注入gin.Context.
NewGRPCContext adds context information such as metadata from the request.
No description provided by the author
NewRichRoute 创建一个富路由.
NewRichRoutes 创建一个多个富路由.
NewRoute 创建一个路由.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RPCMethod returns the method string for the server context.
No description provided by the author
SetHeader 向context设置header.
SetStatusCode 向context设置status code.
SetTrailer 向context设置trailer.
StatusCode 从context获取status code.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Trailer 从context获取trailer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
GorsMetadataPrefix is prepended to permanent HTTP header keys when added to the gRPC context.
MetadataHeaderPrefix is the http prefix that represents custom metadata parameters to or from a gRPC call.
MetadataTrailerPrefix is prepended to gRPC metadata as it is converted to HTTP headers in a response handled by grpc-gateway.
# Variables
DefaultContextTimeout is used for gRPC call context.WithTimeout whenever a Grpc-Timeout inbound header isn't present.
No description provided by the author
No description provided by the author
No description provided by the author
全局默认错误码,可以自定义覆盖.
全局默认错误码,可以自定义覆盖.
全局默认错误码,可以自定义覆盖.
全局默认错误码,可以自定义覆盖.
全局默认错误码,可以自定义覆盖.
全局默认错误码,可以自定义覆盖.
# Structs
No description provided by the author
Error 包含业务状态的错误.
No description provided by the author
ServerTransportStream implements grpc.ServerTransportStream.
Status 代表业务状态信息.
# Interfaces
Binding 如果请求参数struct实现Binding接口,框架会用自定义绑定逻辑来绑定请求参数.
No description provided by the author
Render 如果响应参数struct实现Render接口,框架会用自定义渲染逻辑来渲染响应参数.
RichRoute 富路由,在 Route 基础上,为路由增加了中间件功能。.
Route 基础路由,定义一个接口路由,包括method、path和处理器.
Validator 如果请求参数struct实现Validator接口,框架会验证数据.
# Type aliases
No description provided by the author