Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAddr is an invalid address error. ErrInvalidAddr = errors.New("invalid address") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // Addr is the address for the server to listen on. // e.g. "localhost:8080" or // "unix:/path/to/server.sock?mode=0600&user=www-data&group=www-data" Addr string // Handler is a HTTP handler serving requests. Handler http.Handler // ShutdownTimeout is the duration to wait before forcefully shuting down // the server. ShutdownTimeout time.Duration }
Server is a HTTP server.
Click to show internal directories.
Click to hide internal directories.