package server
import "github.com/dotcloud/docker/api/server"
Index ¶
- func AttachProfiler(router *mux.Router)
- func ServeApi(job *engine.Job) engine.Status
- func ServeRequest(eng *engine.Engine, apiversion version.Version, w http.ResponseWriter, req *http.Request)
- type HttpApiFunc
- type HttpServer
- type Server
Functions ¶
func AttachProfiler ¶
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 ServeRequest ¶
func ServeRequest(eng *engine.Engine, apiversion version.Version, w http.ResponseWriter, req *http.Request)
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
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func (*HttpServer) Close ¶
func (s *HttpServer) Close() error
func (*HttpServer) Serve ¶
func (s *HttpServer) Serve() error
type Server ¶
Source Files ¶
- Version
- v1.6.2
- Published
- May 11, 2015
- Platform
- js/wasm
- Imports
- 30 packages
- Last checked
- 52 seconds ago –
Tools for package owners.