{"repo":"xxjwxc/ginrpc","free":true,"listed":false,"github":"https://github.com/xxjwxc/ginrpc","clone":"git clone https://github.com/xxjwxc/ginrpc.git","description":"gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具","language":"Go","stars":303,"topics":["gin","golang","auto","bind","go","rpc","binding","middleware","grpc","grpc-go"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"中文文档 Automatic parameter binding base on go-gin doc Golang gin automatic parameter binding - Support for RPC automatic mapping - Support object registration - Support annotation routing - base on go-gin on json restful style - implementation of parameter filtering and binding with request - code registration simple and supports multiple ways of registration - grpc-go bind support - Support swagger MORE - Support markdown/mindoc MORE - Support call before and after deal( ginrpc.WithBeforeAfter ) - DEMO Installing - go mod: API details Three interface modes are supported - func( gin.Context) // go-gin Raw interface func( api.Context) // Custom context type - func( api.Context,req) // Custom context type,with request func( api.Context, req) - func( gin.Context, req) // go-gin context,with request func( gin.Context,req) - func( gin.Context, req)( resp,error) // go-gin context,with request,return parameter and error == grpc-go func( gin.Context,req)(resp,error) 一. Parameter auto binding,Object registration (annotation routing) Initialization project (this project is named after gmsec ) coding more - Annotation routing related instructions - @Router - [-] indicates ignore #### Note: if there is no annotation route in the object function, the system will add annotation route by default. Post mode: with req (2 parameters (CTX, req)), get mode is a parameter (CTX) 1. Annotation route will automatically create [mod]/routes/gen router.go file, which needs to be added when calling: By de","default_branch":null,"files":null,"tree":[],"storefront":"/r/xxjwxc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xxjwxc/ginrpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}