Documentation
¶
Overview ¶
Package config resolves runtime configuration for the Factorio MCP server from environment variables, with optional flag overrides handled by callers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Host is the RCON host (default 127.0.0.1).
Host string
// Port is the RCON TCP port (default 27015).
Port string
// Password is the RCON password. Required.
Password string
// DialTimeout bounds the initial TCP connect + auth.
DialTimeout time.Duration
// RequestTimeout bounds a single command round-trip.
RequestTimeout time.Duration
// AllowEval enables the raw Lua eval escape hatch (a cheat / debug tool).
AllowEval bool
}
Config holds everything needed to connect to a Factorio RCON endpoint.