server

package
v1.8.2-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2015 License: Apache-2.0 Imports: 39 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProfilerSetup added in v1.7.0

func ProfilerSetup(mainRouter *mux.Router, path string)

Types

type HttpApiFunc

type HttpApiFunc func(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error

type HttpServer added in v1.4.0

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

func (*HttpServer) Close added in v1.4.0

func (s *HttpServer) Close() error

func (*HttpServer) Serve added in v1.4.0

func (s *HttpServer) Serve() error

type Server added in v1.4.0

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

func New added in v1.7.0

func New(cfg *ServerConfig) *Server

func (*Server) AcceptConnections added in v1.7.0

func (s *Server) AcceptConnections(d *daemon.Daemon)

func (*Server) Close added in v1.4.0

func (s *Server) Close()

func (*Server) ServeApi added in v1.7.0

func (s *Server) ServeApi(protoAddrs []string) error

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 added in v1.7.0

type ServerConfig struct {
	Logging     bool
	EnableCors  bool
	CorsHeaders string
	Version     string
	SocketGroup string
	TLSConfig   *tls.Config
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL