Discover Packages
github.com/Techassi/gomark
internal
server
package
Version:
v0.0.0-...-8c61d13
Opens a new window with list of versions in this module.
Published: Jul 18, 2020
License: MIT
Opens a new window with license information.
Imports: 9
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 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
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.