package config var ExtConfig Extend // Extend 扩展配置 // // extend: // demo: // name: demo-name // // 使用方法: config.ExtConfig......即可!! type Extend struct { // AMap AMap // 这里配置对应配置文件的结构即可 OLAPDB OLAPDB Kafka Kafka Otel Otel Prometheus Prometheus ClickhouseMetrics bool } type AMap struct { Key string } type OLAPDB struct { Driver string Addr string Debug bool Database string Username string Password string MaxOpenConns int MaxIdleConns int } type Kafka struct { Brokers []string Topic string Consumers int MaxConcurrency int MetricsGroupId string } type Otel struct { // ServiceName string // ServiceVersion string // MetricsEndpoint string // MetriInterval int64 Common OTelCommon Metrics OTelMetrics } type OTelCommon struct { ServiceName string ServiceVersion string Endpoint string // http endpoint GrpcEndpoint string } type OTelMetrics struct { Interval int64 } type Prometheus struct { Address string }