38 lines
772 B
YAML
38 lines
772 B
YAML
# 单元测试专用配置:字段值与开发配置刻意不同,便于断言映射正确性。
|
|
server:
|
|
name: go-sms-test
|
|
http:
|
|
addr: ":9800"
|
|
read_timeout: 10s
|
|
write_timeout: 10s
|
|
|
|
mysql:
|
|
dsn: "test:test@tcp(127.0.0.1:13306)/go-sms_test?charset=utf8mb4&parseTime=True&loc=Local"
|
|
max_open_conns: 10
|
|
|
|
redis:
|
|
mode: cluster
|
|
addrs: ["127.0.0.1:16380", "127.0.0.1:16381"]
|
|
|
|
kafka:
|
|
brokers: ["127.0.0.1:19092"]
|
|
topics:
|
|
submit: test-sms-submit
|
|
report: test-sms-report
|
|
up: test-sms-up
|
|
stats: test-stats
|
|
|
|
etcd:
|
|
endpoints: ["127.0.0.1:12379"]
|
|
dial_timeout: 5s
|
|
|
|
clickhouse:
|
|
addrs: ["127.0.0.1:19000"]
|
|
database: go-sms_test
|
|
|
|
minio:
|
|
endpoint: "127.0.0.1:19010"
|
|
access_key: test-access
|
|
secret_key: test-secret
|
|
bucket: go-sms-test
|