Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer contains an instance of http server and the listener.
func (*HTTPServer) Close ¶
func (s *HTTPServer) Close() error
Close closes the HTTPServer from listening for the inbound requests.
func (*HTTPServer) Serve ¶
func (s *HTTPServer) Serve() error
Serve starts listening for inbound requests.
type Server ¶
Server contains instance details for the server
func New ¶
New returns a new instance of the server based on the specified configuration. It allocates resources which will be needed for ServeAPI(ports, unix-sockets).
func (*Server) Close ¶
func (s *Server) Close()
Close closes servers and thus stop receiving requests
func (*Server) InitRouter ¶
InitRouter initializes the list of routers for the server.
func (*Server) UseMiddleware ¶
func (s *Server) UseMiddleware(m middleware.Middleware)
UseMiddleware appends a new middleware to the request chain. This needs to be called before the API routes are configured.
Click to show internal directories.
Click to hide internal directories.