Discover Packages
github.com/Techassi/mux
internal
server
package
Version:
v0.0.0-...-77c78fe
Opens a new window with list of versions in this module.
Published: Jun 2, 2020
License: GPL-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Server struct {
Port int
Mux *echo.Echo
App app .App
}
Server is the top-level server instance.
New initiates a new Server instance and returns it.
Init sets up some basic parameters of the provided Server instance.
Run spins up the server, adds all routes and listens on the provided port.
It panics when the server couldn't be started. Panics in the call chain
will recover, print a stack trace and the HTTPErrorHandler handles the panic.
TemplateRenderer is a custom html/template renderer for Echo framework
Render renders a template document
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.