Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Host string
// contains filtered or unexported fields
}
Server defines a server that listens on HTTP requests.
func New ¶
New creates an instance of an HTTP server. When the provided context terminates, the server will gracefully shutdown.
func (*Server) RegisterHandler ¶
RegisterEndpoint registers the specified method and path endpoint with the request handler reqHandler. The resource type rt is provided for shared handlers.
Click to show internal directories.
Click to hide internal directories.