github.com/boynux/docker@v1.11.0-rc4/api/server/middleware/middleware.go (about) 1 package middleware 2 3 import "github.com/docker/docker/api/server/httputils" 4 5 // Middleware is an adapter to allow the use of ordinary functions as Docker API filters. 6 // Any function that has the appropriate signature can be registered as a middleware. 7 type Middleware func(handler httputils.APIFunc) httputils.APIFunc