Documentation ¶
Index ¶
- func SetDefaultArcConfig()
- func SetDefaultCacheConfig()
- func SetDefaultGRPCConfig()
- func SetDefaultKafkaConfig()
- func SetDefaultPprofConfig()
- func SetDefaultTaosConfig()
- func SetDefaultWorkConfig()
- type ArcConfig
- type CacheConfig
- type GRPCConfig
- type KafkaConfig
- type PprofConfig
- type TaosConfig
- type WorkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArcConfig ¶
type ArcConfig struct { Basic *basic.BasicConfig Work *WorkConfig `toml:"-"` Log *logging.LogConfig `toml:"-"` Trace *tracing.TraceConfig `toml:"-"` Cache *CacheConfig `toml:"-"` Kafka *KafkaConfig `toml:"-"` Taos *TaosConfig `toml:"-"` Grpc *GRPCConfig `toml:"-"` Pprof *PprofConfig `toml:"-"` }
ArcConfig 配置
type CacheConfig ¶
type CacheConfig struct { Enable bool `toml:"enable"` TimeoutMin int `toml:"timeoutmin"` ExpireMs int `toml:"expirems"` Search bool `toml:"search"` }
CacheConfig struct
type GRPCConfig ¶
GRPCConfig -
type KafkaConfig ¶
type KafkaConfig struct { Enable bool `toml:"enable"` Server string `toml:"server"` GroupID string `toml:"groupID"` MessageMaxBytes int `toml:"messageMaxBytes"` Topic string `toml:"topic"` Interval int `toml:"interval"` }
KafkaConfig -
type TaosConfig ¶
type TaosConfig struct { Host string `toml:"host"` Enable bool `toml:"enable"` Interval int `toml:"interval"` TagName string `toml:"tag_name"` }
TaosConfig -
type WorkConfig ¶
type WorkConfig struct { DataPath string `toml:"dataPath"` SaveType int `toml:"saveType"` DebugMod int `toml:"debugMod"` SaveDuration string `toml:"saveduration"` SaveNum int `toml:"saveNum"` WorkCount int `toml:"workCount"` ChanCapacity int `toml:"chanCapacity"` ArcVolumeQueueLen int `toml:"arcVolumeQueueLen"` ArcVolumeQueueReadTimeoutSeconds int `toml:"arcVolumeQueueReadTimeoutSeconds"` ArcVolumeQueueNum int `toml:"arcVolumeQueueNum"` AllowAutomaticallySaveFile bool `toml:"allowAutomaticallySaveFile"` // 允许每分钟自动保存到文件 FrameOffset int `toml:"frameOffset"` // 从缓存查询数据, 多查询的帧数 TimeOut int `toml:"timeOut"` // 超时落盘,单位:s }
WorkConfig 配置
Click to show internal directories.
Click to hide internal directories.