github.com/wfusion/gofusion@v1.1.14/test/cron/configs/app.yml (about) 1 base: 2 debug: false 3 app: gofusion 4 goroutine_pool: 5 max_routine_amount: -1 6 7 http: 8 port: 8080 9 cert: "" 10 key: "" 11 tls: false 12 next_protos: [http/1.1] 13 colorful_console: false 14 success_code: 0 15 pprof: false 16 read_timeout: 10s 17 write_timeout: 10s 18 xss_white_url_list: [ "" ] 19 asynq: 20 - path: /asynq 21 instance: default 22 instance_type: redis 23 prometheus_address: "" 24 25 log: 26 default: 27 log_level: debug 28 stacktrace_level: error 29 enable_console_output: true 30 console_output_option: 31 layout: console 32 enable_file_output: false 33 file_output_option: 34 layout: json 35 path: . 36 name: gofusion.log 37 rotation_max_age: 24h 38 rotation_count: 10 39 rotation_size: 100mib 40 compress: false 41 42 db: 43 default: 44 driver: mysql 45 db: mysql 46 host: mysql 47 port: 3306 48 user: root 49 password: ci 50 timeout: 5s 51 read_timeout: 2s 52 write_timeout: 2s 53 max_idle_conns: 20 54 max_open_conns: 20 55 enable_logger: true 56 logger_config: 57 log_level: info 58 slow_threshold: 500ms 59 60 redis: 61 default: 62 db: 0 63 password: ci 64 cluster: false 65 endpoints: 66 - redis:6379 67 dial_timeout: 5s 68 read_timeout: 2s 69 write_timeout: 2s 70 min_idle_conns: 100 71 max_idle_conns: 10000 72 enable_logger: false 73 unloggable_commands: [echo,ping] 74 75 lock: 76 redis_lua: 77 type: redis_lua 78 instance: default 79 redis_nx: 80 type: redis_nx 81 instance: default 82 mysql: 83 type: mysql 84 instance: default 85 86 cron: 87 default: 88 type: asynq 89 instance: default 90 instance_type: redis 91 queue: gofusion:cron:default 92 server: true 93 trigger: true 94 enable_logger: true 95 tasks: 96 test: 97 crontab: "@every 1s" 98 default_dup: 99 type: asynq 100 instance: default 101 instance_type: redis 102 queue: gofusion:cron:default 103 server: true 104 trigger: true 105 enable_logger: true 106 tasks: 107 test: 108 crontab: "@every 1s" 109 with_lock: 110 type: asynq 111 instance: default 112 instance_type: redis 113 lock_instance: redis_lua 114 queue: gofusion:cron:with_lock 115 server: true 116 trigger: true 117 enable_logger: true 118 tasks: 119 test: 120 crontab: "@every 1s" 121 with_callback: 122 crontab: "@every 1s" 123 callback: github.com/wfusion/gofusion/test/cron/cases.handleWithCallback 124 with_args: 125 crontab: "@every 1s" 126 payload: '{"msg": "ok"}' 127 with_lock_dup: 128 type: asynq 129 instance: default 130 instance_type: redis 131 lock_instance: redis_lua 132 queue: gofusion:cron:with_lock 133 server: true 134 trigger: true 135 enable_logger: true 136 tasks: 137 test: 138 crontab: "@every 1s" 139 with_callback: 140 crontab: "@every 1s" 141 callback: github.com/wfusion/gofusion/test/cron/cases.handleWithCallback 142 with_args: 143 crontab: "@every 1s" 144 payload: '{"msg": "ok"}'