feat: initial Netts energy orchestrator

This commit is contained in:
你的用户名
2025-11-03 19:26:48 +08:00
commit 891c32e288
25 changed files with 2210 additions and 0 deletions

29
config.example.yaml Normal file
View File

@@ -0,0 +1,29 @@
server:
address: ":8080"
readTimeout: 10s
writeTimeout: 10s
idleTimeout: 60s
shutdownTimeout: 15s
netts:
apiKey: "replace-with-netts-api-key"
baseUrl: "https://netts.io"
realIp: "1.2.3.4"
callbackUrl: "https://your-domain.com/netts/callback"
httpTimeout: 15s
retry:
maxAttempts: 3
backoff: 2s
maxBackoff: 10s
energy:
autoAddHost: true
minCycles: 3
targetCycles: 10
minEnergyThreshold: 32000
postOrderWait: 3s
defaultAnalyzeValue: "100.00"
logging:
level: info
format: text