Discover Packages
hauru.club/x/okrzeja
cmd
package
Version:
v0.0.0-...-4292577
Opens a new window with list of versions in this module.
Published: Oct 10, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package cmd contains entrypoints for okrzeja http server.
Run runs default application. It is main entrypoint for okrzeja.
type WebServer struct {
}
WebServer starts and stops HTTP configured web server.
NewWebServer is the only safe constructor to use for WebServer. It initializes
WebServer with default dependencies and configures it with static and dynamic
variables.
Start starts WebServer and blocks.
Stop stops WebServer and blocks until timeout deadline.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.