feat: 初始化配置中心项目

This commit is contained in:
2026-01-14 21:02:13 +08:00
commit 4436d3ee88
95 changed files with 8736 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package client
// Config holds the client configuration
type Config struct {
BaseURL string `json:"baseUrl"`
AppName string `json:"appName"`
Env string `json:"env"`
Version string `json:"version"`
Token string `json:"token"`
SyncInterval int `json:"syncInterval"` // seconds
IgnoreGlobal bool `json:"ignoreGlobal"`
CacheDir string `json:"cacheDir"`
}
// DefaultConfig returns a config with default values
func DefaultConfig() *Config {
return &Config{
Version: "latest",
SyncInterval: 60,
CacheDir: ".",
}
}