Documentation
¶
Overview ¶
Package daemon wires the eventstore, state cache, registry, CLI socket, and observability into a single runnable gohomed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "unknown" GoVersion = runtime.Version() )
Version, Commit, and GoVersion are set via -ldflags at build time.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DataDir string
LogLevel slog.Level
LogFormat string // "auto" | "tty" | "json"
AdminPort int // HTTP for /metrics and /health
SocketPath string // UNIX socket for CLI mutative ops
SnapshotEveryEvents int
SnapshotEveryPeriod time.Duration
DriversTOMLPath string // resolved against DataDir in Run; "@data/drivers.toml" is the sentinel
CarportSocketDir string // resolved against DataDir in Run; "@data/carport" is the sentinel
ConfigDir string // resolved against DataDir in Run; "@data/config" is the sentinel
}
func (*Config) WithDefaults ¶
func (c *Config) WithDefaults()
Click to show internal directories.
Click to hide internal directories.