package server

import "github.com/docker/docker/api/server"

Index

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server contains instance details for the server

func (*Server) CreateMux

func (s *Server) CreateMux(ctx context.Context, routers ...router.Router) *mux.Router

CreateMux returns a new mux with all the routers registered.

func (*Server) UseMiddleware

func (s *Server) UseMiddleware(m middleware.Middleware)

UseMiddleware appends a new middleware to the request chain. This needs to be called before the API routes are configured.

Source Files

middleware.go server.go

Directories

PathSynopsis
api/server/backend
api/server/backend/build
api/server/httpstatus
api/server/httputils
api/server/middleware
api/server/router
api/server/router/build
api/server/router/checkpoint
api/server/router/container
api/server/router/debug
api/server/router/distribution
api/server/router/grpc
api/server/router/image
api/server/router/network
api/server/router/plugin
api/server/router/session
api/server/router/swarm
api/server/router/system
api/server/router/volume
Version
v28.0.3+incompatible
Published
Mar 25, 2025
Platform
js/wasm
Imports
11 packages
Last checked
1 minute ago

Tools for package owners.