github.com/wfusion/gofusion@v1.1.14/test/config/configs/full_commandline_args.example (about)

     1  --debug --app demo --app-config '{}' --crypto-config '{"config": {"mode": "gcm","algorithm": "sm4","key_base64": "MTIzNDU2NzhhYmNkZWZnaA==","confuse_key": true,"output_algorithm": "base64"},"custom": {"gorm": {"mode": "gcm","algorithm": "sm4","key_base64": "MTIzNDU2NzhhYmNkZWZnaA==","confuse_key": true,"output_algorithm": "base64"}}}' --http-config '{"port": 9001,"cert": "","key": "","tls": false,"next_protos": ["http/1.1"],"colorful_console": false,"success_code": 0,"pprof": false,"read_timeout": "10s","write_timeout": "10s","enable_logger": true,"log_instance": "default","logger": "github.com/wfusion/gofusion/log/customlogger.httpLogger","asynq": [{"path": "/asynq","instance": "default","instance_type": "redis","readonly": false,"prometheus_address": ""}],"clients": {"default": {"mock": true,"timeout": "30s","dial_timeout": "30s","dial_keepalive_time": "30s","force_attempt_http2": true,"tls_handshake_timeout": "10s","disable_compression": false,"max_idle_conns": 100,"max_idle_conns_per_host": 100,"max_conns_per_host": 0,"idle_conn_timeout": "90s","expect_continue_timeout": "1s","retry_count": 0,"retry_wait_time": "100ms","retry_max_wait_time": "2s","retry_condition_funcs": [],"retry_hooks": []}},"metrics": {"header_labels": []}}' --i18n-config '{"default_lang": "zh"}' --goroutine-config '{"max_routine_amount": 1,"max_release_time_per_pool": "3h","force_sync": false,"enable_logger": false,"logger": "github.com/wfusion/gofusion/log/customlogger.routineLogger","log_instance": "default"}' --metrics-config '{"prometheus": {"type": "prometheus","mode": "push","interval": "15s","labels": {"constant_key": "constant_value"},"endpoint": {"addresses": ["localhost:29090"]},"enable_service_label": true,"enable_runtime_metrics": true,"enable_internal_metrics": true,"log_instance": "default","queue_limit": 16384,"queue_concurrency": 0}}' --log-config '{"default": {"log_level": "debug","stacktrace_level": "error","skip_callers": [],"shorter_filepath": true,"enable_console_output": true,"console_output_option": {"layout": "console","colorful": false},"enable_file_output": false,"file_output_option": {"layout": "console","path": ".","name": "gofusion.log","rotation_max_age": "24h","rotation_count": 10,"rotation_size": "100mib","compress": false}}}' --db-config '{"read": {"driver": "mysql","dialect": "mysql","db": "mysql","host": "localhost","port": 23306,"user": "root","password": "j8RJId7eTMAUJ3NUytlZGqVzP6wOzrbTX7YcizC8","timeout": "5s","read_timeout": "2s","write_timeout": "2s","max_idle_conns": 20,"max_open_conns": 20,"conn_max_life_time": "30m","conn_max_idle_time": "15m","auto_increment_increment": 0,"sharding": [{"table": "user","suffix": "","columns": ["city"],"sharding_key_expr": "","sharding_key_by_raw_value": false,"sharding_keys_for_migrating": [],"number_of_shards": 1,"idgen": "github.com/wfusion/gofusion/common/infra/drivers/orm/idgen.NewSnowflake"}],"enable_logger": true,"logger_config": {"log_level": "info","slow_threshold": "500ms","logger": "github.com/wfusion/gofusion/log/customlogger.gormLogger","log_instance": "default"}},"write": {"driver": "mysql","db": "mysql","host": "localhost","port": 23306,"user": "root","password": "j8RJId7eTMAUJ3NUytlZGqVzP6wOzrbTX7YcizC8","timeout": "5s","read_timeout": "2s","write_timeout": "2s","max_idle_conns": 20,"max_open_conns": 20,"enable_logger": true,"logger_config": {"log_level": "info","slow_threshold": "500ms"}}}' --mongo-config '{"default": {"db": "admin","auth_db": "admin","user": "root","password": "j8RJId7eTMAUJ3NUytlZGqVzP6wOzrbTX7YcizC8","endpoints": ["localhost:27017"],"timeout": "5s","conn_timeout": "30s","socket_timeout": "5s","heartbeat_interval": "10s","max_connecting": 2,"min_pool_size": 0,"max_pool_size": 100,"max_conn_idle_time": "10s","retry_writes": true,"retry_reads": true,"enable_logger": true,"logger_config": {"logable_commands": ["insert","find","update","delete","aggregate","distinct","count","findAndModify"],"logger": "github.com/wfusion/gofusion/log/customlogger.mongoLogger","log_instance": "default"}}}' --redis-config '{"default": {"db": 0,"user": "","password": "j8RJId7eTMAUJ3NUytlZGqVzP6wOzrbTX7YcizC8","cluster": false,"endpoints": ["localhost:26379"],"dial_timeout": "5s","read_timeout": "2s","write_timeout": "2s","min_idle_conns": 0,"max_idle_conns": 0,"conn_max_idle_time": "30m","conn_max_life_time": "0","max_retries": 3,"min_retry_backoff": "8ms","max_retry_backoff": "512ms","pool_size": 0,"pool_timeout": "","enable_logger": true,"unlogable_commands": ["echo", "ping"],"log_instance": "default","hooks": ["github.com/wfusion/gofusion/log/customlogger.redisLogger"]}}' --mq-config '{"mysql": {"topic": "gofusion","type": "mysql","producer": true,"consumer": true,"consumer_group": "default_group","consumer_concurrency": 10,"endpoint": {"instance_type": "db","instance": "write","addresses": ["localhost:25672"],"user": "root","password": "j8RJId7eTMAUJ3NUytlZGqVzP6wOzrbTX7YcizC8","auth_type": "","version": "3.6.0"},"persistent": true,"serialize_type": "gob","compress_type": "zstd","enable_logger": true,"logger": "github.com/wfusion/gofusion/log/customlogger.mqLogger","log_instance": "default","message_scheme": "gofusion_message","series_scheme": "gofusion_series","consumer_scheme": "gofusion_subscriber","consume_middlewares": [{"type": "throttle","throttle_count": 10,"throttle_duration": "1s","retry_max_retries": 1,"retry_initial_interval": "1s","retry_max_interval": "10s","retry_multiplier": 1.1,"retry_max_elapsed_time": "20s","retry_randomization_factor": 0.1,"poison_topic": "failed","timeout": "10s","circuit_breaker_max_requests": 0,"circuit_breaker_interval": "15s","circuit_breaker_timeout": "60s","circuit_breaker_trip_expr": "consecutive_successes > 5"}]}}' --cache-config '{"local": {"size": 10,"expired": "5s","version": 1,"type": "local","local_evict_type": "arc","remote_type": "","compress": "","serialize_type": "","log_instance": "default","callback": ""}}' --lock-config '{"default": {"type": "redis_lua","instance": "default"}}' --async-config '{"default": {"type": "asynq","instance": "default","instance_type": "redis","producer": true,"consumer": true,"consumer_concurrency": 0,"message_serialize_type": "gob","message_compress_type": "zstd","queues": [{"name": "","level": 3}],"strict_priority": false,"log_level": "info","enable_logger": true,"logger": "github.com/wfusion/gofusion/log/customlogger.asyncLogger","log_instance": "default"}}' --cron-config '{"default": {"type": "asynq","instance": "default","instance_type": "redis","lock_instance": "default","trigger": true,"server": true,"server_concurrency": 0,"timezone": "Asia/Shanghai","queue": "","log_level": "info","enable_logger": true,"logger": "github.com/wfusion/gofusion/log/customlogger.cronLogger","log_instance": "default","task_loader": "","refresh_tasks_interval": "3m","tasks": {"test": {"crontab": "@every 1s","callback": "","payload": "","retry": 0,"timeout": "","deadline": ""}}}}'