Documentation ¶
Index ¶
- func BuildRoutes(state *projection.State, eventChan chan<- events.Event) *mux.Router
- func GracefulShutdownOnSignal(signals []syscall.Signal, shutdownProcedure func())
- func ShutdownHTTPServer(server *http.Server, timeout time.Duration)
- func StartHTTPSServer(addr string, TLSCertPath, TLSKeyPath string, routes http.Handler) (server *http.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRoutes ¶
BuildRoutes returns a mux router with all API routes
func GracefulShutdownOnSignal ¶
GracefulShutdownOnSignal will run the supplied shutdown procedure when one of the specified signals is received
func ShutdownHTTPServer ¶
ShutdownHTTPServer will allow all connections to drain before closing the server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.