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.
This commit is contained in:
27
server/internal/api/agent_config.go
Normal file
27
server/internal/api/agent_config.go
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user