1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
broadcast:
# path to enable web-socket handler middleware
path: /ws
# optional, redis broker configuration
redis:
addrs:
- "localhost:6379"
# if a MasterName is passed a sentinel-backed FailoverClient will be returned
master_name: ""
username: ""
password: ""
db: 0
sentinel_password: ""
route_by_latency: false
route_randomly: false
dial_timeout: 0 # accepted values [1s, 5m, 3h]
max_retries: 1
min_retry_backoff: 0 # accepted values [1s, 5m, 3h]
max_retry_backoff: 0 # accepted values [1s, 5m, 3h]
pool_size: 0
min_idle_conns: 0
max_conn_age: 0 # accepted values [1s, 5m, 3h]
read_timeout: 0 # accepted values [1s, 5m, 3h]
write_timeout: 0 # accepted values [1s, 5m, 3h]
pool_timeout: 0 # accepted values [1s, 5m, 3h]
idle_timeout: 0 # accepted values [1s, 5m, 3h]
idle_check_freq: 0 # accepted values [1s, 5m, 3h]
read_only: false
|