Files
AetherForge/server/internal/api/agent_config.go
drjones df81eb7744 Add fleet ops dashboard, Calibrate enforcement, and dead-code cleanup.
Ship live alerts, pool status, AI monitor, remote agent commands, build manager, and uninstall flow; wire Calibrate settings (WS ping, pool traffic log, retention limits) at runtime and exclude server/data from git.
2026-05-27 09:16:04 -07:00

28 lines
591 B
Go

package api
// AgentForgeConfig holds per-miner settings forged on the Forge page and sent at auth.
type AgentForgeConfig struct {
Wallet string
PoolHost string
PoolPort int
PoolTLS bool
PoolPass string
AIEnabled bool
AIOllamaEndpoint string
AIModel string
}
func (c AgentForgeConfig) poolHostOrDefault(fallback string) string {
if c.PoolHost != "" {
return c.PoolHost
}
return fallback
}
func (c AgentForgeConfig) poolPortOrDefault(fallback int) int {
if c.PoolPort > 0 {
return c.PoolPort
}
return fallback
}