server

package
v0.13.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 10 Imported by: 0

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