server

package
v0.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

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

func Run(ctx context.Context, cfg Config) error

Run starts the server with the given configuration and blocks until the context is canceled.

func RunWithSignalHandling

func RunWithSignalHandling(cfg Config) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL