server

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server provides the arc server runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDBPath

func DefaultDBPath() string

DefaultDBPath returns the default database path.

func DefaultDataDir

func DefaultDataDir() string

DefaultDataDir returns the default data directory (~/.arc).

func LogPath

func LogPath() string

LogPath returns the path to the log file.

func PIDPath

func PIDPath() string

PIDPath returns the path to the PID file.

func Run

func Run(cfg Config) error

Run starts the server and blocks until shutdown. It handles graceful shutdown on SIGINT/SIGTERM.

func RunWithRestart

func RunWithRestart(cfg Config)

RunWithRestart runs the server with automatic restart on crash.

Types

type Config

type Config struct {
	Address string // Server address (e.g., ":7432")
	DBPath  string // Database path (empty for default)
}

Config holds server configuration.

Jump to

Keyboard shortcuts

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