Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements a http server which handles requests using the configured Router.
func NewServer ¶
NewServer creates a new http server listening on the configured address and using the configured http.Handler to serve requests. An error is returned if the address the server should listen on is already in use.
func (*Server) ListenAddr ¶
ListenAddr returns the address the http server is listening on.
func (*Server) ListenError ¶
ListenError returns the receive-only channel which signals errors during http server startup.
Click to show internal directories.
Click to hide internal directories.