Documentation ¶
Index ¶
- func AcceptConnections(job *engine.Job) error
- func NewProfiler() http.Handler
- func NewTcpSocket(addr string, config *tlsConfig) (net.Listener, error)
- func NewUnixSocket(path, group string) (net.Listener, error)
- func ServeApi(job *engine.Job) error
- func ServeRequest(eng *engine.Engine, apiversion version.Version, w http.ResponseWriter, ...)
- type HttpApiFunc
- type HttpServer
- type Profiler
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptConnections ¶
Called through eng.Job("acceptconnections")
func NewProfiler ¶
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 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
Click to show internal directories.
Click to hide internal directories.