serverboot

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Overview

Package serverboot is the shared bootstrap for the registry HTTP server. The podium-server binary and the `podium serve` subcommand both call Run, so a single deployment ships only the `podium` binary and still has the standalone server available in-process.

Configuration comes from PODIUM_* environment variables (§13.12) with `~/.podium/registry.yaml` filling in any unset values. Default behavior matches §13.10's zero-flag standalone deployment: SQLite metadata, filesystem object store, no auth, bound on 127.0.0.1:8080.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Run loads configuration, opens the configured backends, mounts every endpoint, and serves until a SIGINT or SIGTERM triggers a graceful shutdown. It installs the signal handler, then delegates to run with the resulting lifecycle context. It returns nil after a clean drain, or the underlying error if the listener never binds or the drain times out.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig() *Config

func (*Config) Settings

func (c *Config) Settings() []Setting

Settings returns a deterministic view of the resolved configuration with the source of each value (env var, yaml file, or hardcoded default). Secrets are redacted.

type Setting

type Setting struct {
	Name   string
	Value  string
	Source string
}

Setting names one resolved field together with the env var (or fallback) it came from. `podium config show` consumes this.

Jump to

Keyboard shortcuts

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