package router

import "github.com/docker/docker/api/server/router"

Index

Types

type Route

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
}

Route defines an individual API route in the docker server.

type Router

type Router interface {
	Routes() []Route
}

Router defines an interface to specify a group of routes to add the the docker server.

Source Files

router.go

Directories

PathSynopsis
api/server/router/local
api/server/router/network
Version
v1.9.0-rc4
Published
Oct 31, 2015
Platform
js/wasm
Imports
1 packages
Last checked
2 minutes ago

Tools for package owners.