Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ShutdownDelay is the time to wait for all request, go-routines etc complete ShutdownDelay = 10 // seconds )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface {
StartBlocking()
Stop()
}
Server is an interface for the HTTP server
func NewServer ¶
func NewServer(router RouterFunc, shutdown ShutdownFunc, errorHandler echo.HTTPErrorHandler) Server
NewServer returns a new HTTP server
type ShutdownFunc ¶
ShutdownFunc is called before the server stops
Click to show internal directories.
Click to hide internal directories.