refactor: 客户端目录统一添加 kenaito-conf- 前缀
- go-client → kenaito-conf-go-client - python-client → kenaito-conf-python-client - python-client-demo → kenaito-conf-python-client-demo - nodejs-client → kenaito-conf-nodejs-client - nodejs-client-demo → kenaito-conf-nodejs-client-demo - 更新所有 README 和 package.json 中的路径引用
This commit is contained in:
@@ -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: ".",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user