Documentation
¶
Overview ¶
Package server provides the main server initialization and run logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run starts the server with the given configuration and blocks until the context is canceled.
func RunWithSignalHandling ¶
RunWithSignalHandling starts the server and handles OS signals for graceful shutdown.
Types ¶
type Config ¶
type Config struct {
Host string // Bind host/IP (empty = config/default behavior)
Port int // Port to run the server on (0 = use config default)
Mode string // Run mode: server, worker, or both
Version string // Version string to report
Commit string // Git commit hash
}
Config holds the server configuration options.
Click to show internal directories.
Click to hide internal directories.