feat: add im tenant db routing and chapter seven flows

This commit is contained in:
richjohnrambo
2026-08-13 11:30:48 +08:00
parent 774a448c12
commit 31f82d9c41
19 changed files with 5261 additions and 47 deletions
+5 -1
View File
@@ -290,7 +290,11 @@
"mysql": {
// MySQL connection settings via DSN.
// See https://github.com/go-sql-driver/mysql#dsn-data-source-name for syntax.
"dsn": "mysql://root:oWxz*2=sb),ouW%p@tcp(120.25.72.121:53306)/tinode?parseTime=true&collation=utf8mb4_0900_ai_ci",
"dsn": "mysql://root:root@tcp(127.0.0.1:3306)/tinode?parseTime=true&collation=utf8mb4_0900_ai_ci",
// Public tenant registry database. Tenant business data remains in tinode or per-tenant DBs.
"tenant_registry_db": "hotgo",
// Route tenant-scoped auth/business queries to each tenant's DB according to hotgo.im_tenant.
"tenant_db_routing": true,
// MySQL connection pool settings.
// Maximum number of open connections to the database. Default: 0 (unlimited).
"max_open_conns": 64,