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 a wrapped server that handle http request and respond to client.
func (*Server) GracefulShutdown ¶
GracefulShutdown stops the underlying HTTP server gracefully.
func (*Server) HTTPServer ¶
HTTPServer returns the underlying HTTP server instance.
func (*Server) Router ¶
func (s *Server) Router() *chi.Mux
Router get server's router to register handler.
func (*Server) Serve ¶
Serve handles all incoming connections, it blocks util Stop() function invoke explicitly.
Click to show internal directories.
Click to hide internal directories.