- writermem: responseWriter
- Request: *http.Request
- Writer: ResponseWriter
- Params: Params
- handlers: HandlersChain
- index: int8
- engine: *Engine
- Keys
Last active
May 10, 2017 03:50
-
-
Save locona/4d586bf437a0c8ac5c095cfc7cccccbe to your computer and use it in GitHub Desktop.
Gin読書会
- RouterGroup -> routegroup.md
- HTMLRender: render.HTMLRender
- allNoRoute: HandlersChain
- allNoMethod: HandlersChain
- noRoute: HandlersChain
- noMethod: HandlersChain
- pool: sync.Pool
- trees: methodTrees
- RedirectTrailingSlash: bool
- RedirectFixedPath: bool: /FOO, //FOO -> /foo というようにいい感じに直してくれる
- HandleMethodNotAllowed: bool
- ForwardedByClinetIP: bool
- RedirectTrailingSlash: true
- RedirectFixedPath: false
- HandleMethodNotAllowed: false
- ForwardedByClientIP: true
New をベースとして以下2つのmiddlewareをUseしている
- Logger()
- Recovery()
- routergroup のUseを使用.このメソッドでは、middlewareを渡しているだけ.
- 404, 405Handlers の追加
- Handlers: HandlersChain
- basePath: string
- engine: *Engine
- root: bool
- IRoutes
- Group(string, ...HandlerFunc) *RouterGroup
- Use
- Handle
- Any
- GET
- POST
- DELETE
- PATCH
- PUT
- OPTIONS
- HEAD
- StaticFile
- Static
- StaticFS
group.Handlers = append(group.Handlers, middleware...)
return group.returnObj()
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment