github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/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