新增实例槽位隔离与结构化日志,多开不再共用日志与账号

This commit is contained in:
yml2213
2026-10-14 21:32:49 +08:00
parent f96fa7d858
commit 8c4b15066f
27 changed files with 2011 additions and 468 deletions
+12
View File
@@ -0,0 +1,12 @@
package instance
import "os"
// instanceLock 抽象「进程独占某个槽位」的能力,由各平台实现。
type instanceLock interface {
Close() error
}
func osMkdirAll(path string) error {
return os.MkdirAll(path, 0o700)
}