主分支代码
This commit is contained in:
@@ -10,10 +10,20 @@ import (
|
||||
|
||||
var sharedAPIConfig *APIConfig = nil
|
||||
|
||||
// ClickHouseConfig 仅用于访问日志列表只读查询(logs_ingest)
|
||||
type ClickHouseConfig struct {
|
||||
Host string `yaml:"host" json:"host"`
|
||||
Port int `yaml:"port" json:"port"`
|
||||
User string `yaml:"user" json:"user"`
|
||||
Password string `yaml:"password" json:"password"`
|
||||
Database string `yaml:"database" json:"database"`
|
||||
}
|
||||
|
||||
// APIConfig API节点配置
|
||||
type APIConfig struct {
|
||||
NodeId string `yaml:"nodeId" json:"nodeId"`
|
||||
Secret string `yaml:"secret" json:"secret"`
|
||||
NodeId string `yaml:"nodeId" json:"nodeId"`
|
||||
Secret string `yaml:"secret" json:"secret"`
|
||||
ClickHouse *ClickHouseConfig `yaml:"clickhouse,omitempty" json:"clickhouse,omitempty"`
|
||||
|
||||
numberId int64 // 数字ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user