Documentation ¶ Index ¶ type Server func New(app *app.App) *Server func (s *Server) Init(app *app.App) func (s *Server) Run() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { Port int Mux *echo.Echo App *app.App } Server is the top-level server instance. func New ¶ func New(app *app.App) *Server New initiates a new Server instance and returns it. func (*Server) Init ¶ func (s *Server) Init(app *app.App) Init sets up some basic parameters of the provided Server instance. func (*Server) Run ¶ func (s *Server) Run() Run spins up the router, adds all routes and listens on the provided port. It panics when the router couldn't be started. Panics in the call chain will recover, print a stack trace and the HTTPErrorHandler handles the panic. Source Files ¶ View all Source files server.go Directories ¶ Show internal Expand all Path Synopsis middlewares models status Click to show internal directories. Click to hide internal directories.