package server
import "github.com/docker/docker/api/server"
Index ¶
- func AcceptConnections(job *engine.Job) engine.Status
- func AttachProfiler(router *mux.Router)
- func ListenAndServe(proto, addr string, job *engine.Job) error
- func ServeApi(job *engine.Job) engine.Status
- func ServeFd(addr string, handle http.Handler) error
- func ServeRequest(eng *engine.Engine, apiversion version.Version, w http.ResponseWriter, req *http.Request) error
- type HttpApiFunc
Functions ¶
func AcceptConnections ¶
func AttachProfiler ¶
func ListenAndServe ¶
ListenAndServe sets up the required http.Server and gets it listening for each addr passed in and does protocol specific checking.
func ServeApi ¶
ServeApi loops through all of the protocols sent in to docker and spawns off a go routine to setup a serving http.Server for each.
func ServeFd ¶
ServeFD creates an http.Server and sets it up to serve given a socket activated argument.
func ServeRequest ¶
func ServeRequest(eng *engine.Engine, apiversion version.Version, w http.ResponseWriter, req *http.Request) error
ServeRequest processes a single http request to the docker remote api. FIXME: refactor this to be part of Server and not require re-creating a new router each time. This requires first moving ListenAndServe into Server.
Types ¶
type HttpApiFunc ¶
type HttpApiFunc func(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error
Source Files ¶
- Version
- v1.2.0
- Published
- Aug 20, 2014
- Platform
- js/wasm
- Imports
- 29 packages
- Last checked
- 1 minute ago –
Tools for package owners.