summaryrefslogtreecommitdiff
path: root/api/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/server/server.go')
-rw-r--r--api/server/server.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/api/server/server.go b/api/server/server.go
index e8714eb060..3ce2659287 100644
--- a/api/server/server.go
+++ b/api/server/server.go
@@ -2,7 +2,6 @@ package server // import "github.com/docker/docker/api/server"
import (
"context"
- "crypto/tls"
"net"
"net/http"
"strings"
@@ -22,32 +21,13 @@ import (
// when a request is about to be served.
const versionMatcher = "/v{version:[0-9.]+}"
-// Config provides the configuration for the API server
-type Config struct {
- CorsHeaders string
- Version string
- SocketGroup string
- TLSConfig *tls.Config
- // Hosts is a list of addresses for the API to listen on.
- Hosts []string
-}
-
// Server contains instance details for the server
type Server struct {
- cfg *Config
servers []*HTTPServer
routers []router.Router
middlewares []middleware.Middleware
}
-// New returns a new instance of the server based on the specified configuration.
-// It allocates resources which will be needed for ServeAPI(ports, unix-sockets).
-func New(cfg *Config) *Server {
- return &Server{
- cfg: cfg,
- }
-}
-
// UseMiddleware appends a new middleware to the request chain.
// This needs to be called before the API routes are configured.
func (s *Server) UseMiddleware(m middleware.Middleware) {