Create & Init Project...
This commit is contained in:
8
app/job/live/xroom-feed/configs/application.toml
Normal file
8
app/job/live/xroom-feed/configs/application.toml
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
# This is a TOML document. Boom
|
||||
JobTtl = 20
|
||||
|
||||
|
||||
[roomClient]
|
||||
AppID = "live.room"
|
||||
ConnTimeout = "50ms"
|
0
app/job/live/xroom-feed/configs/grpc.toml
Normal file
0
app/job/live/xroom-feed/configs/grpc.toml
Normal file
4
app/job/live/xroom-feed/configs/http.toml
Normal file
4
app/job/live/xroom-feed/configs/http.toml
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
[server]
|
||||
addr = "0.0.0.0:8000"
|
||||
timeout = "1s"
|
13
app/job/live/xroom-feed/configs/memcache.toml
Normal file
13
app/job/live/xroom-feed/configs/memcache.toml
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
demoExpire = "24h"
|
||||
|
||||
[demo]
|
||||
name = "xroom-feed"
|
||||
proto = "tcp"
|
||||
addr = "127.0.0.1:11211"
|
||||
active = 50
|
||||
idle = 10
|
||||
dialTimeout = "100ms"
|
||||
readTimeout = "200ms"
|
||||
writeTimeout = "300ms"
|
||||
idleTimeout = "80s"
|
10
app/job/live/xroom-feed/configs/mysql.toml
Normal file
10
app/job/live/xroom-feed/configs/mysql.toml
Normal file
@ -0,0 +1,10 @@
|
||||
[liveApp]
|
||||
Addr = "172.16.38.117:3312"
|
||||
DSN = "live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.38.117:3312)/live-app?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
|
||||
ReadDSN = ["live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.38.117:3312)/live-app?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"]
|
||||
Active = 20
|
||||
Idle = 10
|
||||
IdleTimeout ="4h"
|
||||
QueryTimeout = "200ms"
|
||||
ExecTimeout = "300ms"
|
||||
TranTimeout = "400ms"
|
13
app/job/live/xroom-feed/configs/redis.toml
Normal file
13
app/job/live/xroom-feed/configs/redis.toml
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
recExpire = "24h"
|
||||
|
||||
[rec]
|
||||
name = "xroom-feed"
|
||||
proto = "tcp"
|
||||
addr = "127.0.0.1:6379"
|
||||
idle = 10
|
||||
active = 10
|
||||
dialTimeout = "1s"
|
||||
readTimeout = "1s"
|
||||
writeTimeout = "1s"
|
||||
idleTimeout = "10s"
|
Reference in New Issue
Block a user