package server
import "github.com/dotcloud/docker/api/server"
Index ¶
- func ProfilerSetup(mainRouter *mux.Router, path string)
- type HttpApiFunc
- type HttpServer
- type Server
- func New(cfg *ServerConfig) *Server
- func (s *Server) Close()
- func (s *Server) ServeApi(protoAddrs []string) error
- type ServerConfig
Functions ¶
func ProfilerSetup ¶
Types ¶
type HttpApiFunc ¶
type HttpApiFunc func(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 ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *ServerConfig) *Server
func (*Server) Close ¶
func (s *Server) Close()
func (*Server) 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.
type ServerConfig ¶
type ServerConfig struct { Logging bool EnableCors bool CorsHeaders string Version string SocketGroup string TLSConfig *tls.Config }
Source Files ¶
form.go profiler.go server.go server_stub.go
- Version
- v1.8.0-rc2
- Published
- Aug 4, 2015
- Platform
- js/wasm
- Imports
- 37 packages
- Last checked
- 4 minutes ago –
Tools for package owners.