github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/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 the the docker server. 6 type Router interface { 7 Routes() []Route 8 } 9 10 // Route defines an individual API route in the docker server. 11 type Route interface { 12 // Handler returns the raw function to create the http handler. 13 Handler() httputils.APIFunc 14 // Method returns the http method that the route responds to. 15 Method() string 16 // Path returns the subpath where the route responds to. 17 Path() string 18 }