github.com/cookieai-jar/moby@v17.12.1-ce-rc2+incompatible/api/server/router/router.go (about) 1 package router 2 3 import "github.com/docker/docker/api/server/httputils" 4 5 // Router defines an interface to specify a group of routes to add to the docker server. 6 type Router interface { 7 // Routes returns the list of routes to add to the docker server. 8 Routes() []Route 9 } 10 11 // Route defines an individual API route in the docker server. 12 type Route interface { 13 // Handler returns the raw function to create the http handler. 14 Handler() httputils.APIFunc 15 // Method returns the http method that the route responds to. 16 Method() string 17 // Path returns the subpath where the route responds to. 18 Path() string 19 }