Documentation ¶
Index ¶
- Variables
- type AsyncConcurrencyConfig
- type AsyncTasksConfig
- type AutumnConfig
- type BackendConfig
- type CommonConfig
- type ConfigLoader
- type EtcdConfig
- type EtcdEndpoint
- type FsConsoleServiceConfig
- type FsMonitorConfig
- type GcConfig
- type GlobalAsyncConfig
- type GlobalMetaConfig
- type LogConfig
- type MetaConcurrencyConfig
- type MetaConfig
- type MetaServiceConfig
- type MsgBusConfig
- type S3Config
- type ServiceConfig
- type TlsConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger log.Logger
Functions ¶
This section is empty.
Types ¶
type AsyncConcurrencyConfig ¶
type AsyncConcurrencyConfig struct { DelSegThreadNum int `json:"del_seg_thread_num"` DelSegThreadChanSize int `json:"del_seg_thread_chan_size"` DelSegReplicaNodeCount int `json:"del_seg_replica_node_count"` DelFileThreadNum int `json:"del_file_thread_num"` DelFileChanSize int `json:"del_file_chan_size"` ConsoleDelFsThreadNum int `json:"console_del_fs_thread_num"` ConsoleDelFsChanSize int `json:"console_del_fs_chan_size"` ConsoleDelFilesThreadNum int `json:"console_del_files_thread_num"` ConsoleDelFilesChanSize int `json:"console_del_files_chan_size"` FsMonitorThreadNum int `json:"fs_monitor_thread_num"` FsMonitorChanSize int `json:"fs_monitor_chan_size"` GcDelSegThreadNum int `json:"gc_del_seg_thread_num"` GCDelSegChanSize int `json:"gc_del_seg_chan_size"` GcScanSegGcexecutingLimitMinute int `json:"gc_scan_seg_gcexecuting_limit_minute"` GcScanSegGccompletedLimitHour int `json:"gc_scan_seg_gccompleted_limit_hour"` UpdateSegThreadNum int `json:"update_seg_thread_num"` UpdateSegThreadChanSize int `json:"update_seg_thread_chan_size"` }
type AsyncTasksConfig ¶
type AsyncTasksConfig struct { FsMonitorConfig FsMonitorConfig `json:"fs_monitor_config"` LogConfig LogConfig `json:"log_config"` GcConfig GcConfig `json:"gc_config"` AutumnConfig AutumnConfig `json:"autumn_config"` SnowflakeWorkerId uint64 `json:"snowflake_worker_id"` RegionId string `json:"region_id"` AsyncConcurrencyConfig AsyncConcurrencyConfig `json:"async_concurrency_config"` PrometheusAddr string `json:"prometheus_addr"` }
type AutumnConfig ¶
type BackendConfig ¶
type CommonConfig ¶
type CommonConfig struct { MetaConfig MetaConfig `json:"meta_config"` MsgBusConfig MsgBusConfig `json:"msg_bus_config"` S3Config S3Config `json:"s3_config"` }
type ConfigLoader ¶
type ConfigLoader struct { Endpoints []string // contains filtered or unexported fields }
func NewConfigLoader ¶
func NewConfigLoader() (cl *ConfigLoader, err error)
func (*ConfigLoader) LoadAsyncConfig ¶
func (cl *ConfigLoader) LoadAsyncConfig(ctx context.Context) (config *GlobalAsyncConfig, err error)
func (*ConfigLoader) LoadMetaConfig ¶
func (cl *ConfigLoader) LoadMetaConfig(ctx context.Context) (config *GlobalMetaConfig, err error)
type EtcdConfig ¶
type EtcdConfig struct {
Server []string `toml:"server"`
}
type EtcdEndpoint ¶
type EtcdEndpoint struct {
EtcdConfig EtcdConfig `toml:"etcd_config"`
}
type FsConsoleServiceConfig ¶
type FsMonitorConfig ¶
type GlobalAsyncConfig ¶
type GlobalAsyncConfig struct { AsyncTasksConfig AsyncTasksConfig CommonConfig CommonConfig }
type GlobalMetaConfig ¶
type GlobalMetaConfig struct { MetaServiceConfig MetaServiceConfig CommonConfig CommonConfig BackendConfig BackendConfig }
type MetaConcurrencyConfig ¶
type MetaConcurrencyConfig struct { UpdateFileInfoCronMinute int `json:"update_file_info_cron_minute"` UpdateFileInfoThreadNum int `json:"update_file_info_thread_num"` UpdateFileInfoThreadChanSize int `json:"update_file_info_thread_chan_size"` GcmapCacheThreadNum int `json:"gcmap_cache_thread_num"` GcmapCacheThreadChanSize int `json:"gcmap_cache_thread_chan_size"` ThreadSelectorReplicaNodeCount int `json:"thread_selector_replica_node_count"` }
type MetaConfig ¶
type MetaServiceConfig ¶
type MetaServiceConfig struct { TlsConfig TlsConfig `json:"tls_config"` ServiceConfig ServiceConfig `json:"service_config"` LogConfig LogConfig `json:"log_config"` FsConsoleServiceConfig FsConsoleServiceConfig `json:"fs_console_service_config"` AutumnConfig AutumnConfig `json:"autumn_config"` MetaConcurrencyConfig MetaConcurrencyConfig `json:"meta_concurrency_config"` }
type MsgBusConfig ¶
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.