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.
28 lines
591 B
Go
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
|
|
}
|