summaryrefslogtreecommitdiff
path: root/api/server/middleware/middleware.go
Commit message (Collapse)AuthorAgeFilesLines
* Switch from x/net/context -> contextKir Kolyshkin2018-04-231-2/+1
| | | | | | | | | | | Since Go 1.7, context is a standard package. Since Go 1.9, everything that is provided by "x/net/context" is a couple of type aliases to types in "context". Many vendored packages still use x/net/context, so vendor entry remains for now. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
* Add canonical import commentDaniel Nephin2018-02-051-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Move middleware to interfaces.David Calavera2016-04-111-4/+10
| | | | | | | | | | | This makes separating middlewares from the core api easier. As an example, the authorization middleware is moved to it's own package. Initialize all static middlewares when the server is created, reducing allocations every time a route is wrapper with the middlewares. Signed-off-by: David Calavera <david.calavera@gmail.com>
* fix typosallencloud2016-03-061-1/+1
| | | | Signed-off-by: allencloud <allen.sun@daocloud.io>
* Make server middleware standalone functions.David Calavera2016-02-241-0/+7
Removing direct dependencies from the server configuration. Signed-off-by: David Calavera <david.calavera@gmail.com>