mirror of
https://github.com/moby/moby.git
synced 2026-08-03 22:51:03 +00:00
These comments were added to enforce using the correct import path for
our packages ("github.com/docker/docker", not "github.com/moby/moby").
However, when working in go module mode (not GOPATH / vendor), they have
no effect, so their impact is limited.
Remove these imports in preparation of migrating our code to become an
actual go module.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
20 lines
608 B
Go
20 lines
608 B
Go
package router
|
|
|
|
import "github.com/docker/docker/api/server/httputils"
|
|
|
|
// Router defines an interface to specify a group of routes to add to the docker server.
|
|
type Router interface {
|
|
// Routes returns the list of routes to add to the docker server.
|
|
Routes() []Route
|
|
}
|
|
|
|
// Route defines an individual API route in the docker server.
|
|
type Route interface {
|
|
// Handler returns the raw function to create the http handler.
|
|
Handler() httputils.APIFunc
|
|
// Method returns the http method that the route responds to.
|
|
Method() string
|
|
// Path returns the subpath where the route responds to.
|
|
Path() string
|
|
}
|