Documentation ¶
Index ¶
- func CustomBindRequest[T any](f func(c *gin.Context) T) func(c *gin.Context)
- func DefaultRender(ctx *gin.Context, data any, err error)
- func GinContext(ctx context.Context) (*gin.Context, bool)
- type Commenter
- type DefaultErrorResponse
- type Empty
- type GroupCommenter
- type Handler
- type Option
- type Renderer
- type Router
- type Routes
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomBindRequest ¶
CustomBindRequest 自定义绑定参数 注意不包含验证 验证还是会统一进行
Types ¶
type DefaultErrorResponse ¶
type GroupCommenter ¶
type Router ¶
type Router interface { // rpc模式路由方法 // handler 支持rpc方法和gin.HandleFunc(为了支持gin中间件) Get(path string, handler ...any) Commenter Post(path string, handler ...any) Commenter Put(path string, handler ...any) Commenter Patch(path string, handler ...any) Commenter Delete(path string, handler ...any) Commenter Handle(method, path string, handler ...any) Commenter // 同gin Use(handler ...gin.HandlerFunc) Router Group(path string, handler ...gin.HandlerFunc) GroupCommenter }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.