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 manages TCP connections and dispatches parsed messages to appropriate route handlers defined via the Router interface.
func New ¶
New returns a new Server instance with a required header prototype and optional settings.
func (*Server) LoadMiddleware ¶
func (s *Server) LoadMiddleware(mws []middleware.Middleware)
LoadMiddleware appends global middleware to be applied to all routes.
func (*Server) LoadRouter ¶
LoadRouter appends routers to the server's list, deferring route registration.
Click to show internal directories.
Click to hide internal directories.