app-cloudep-tweeting-service/internal/config/config.go

41 lines
704 B
Go
Raw Normal View History

2024-08-28 09:09:01 +00:00
package config
2024-09-01 14:47:24 +00:00
import (
2024-09-02 13:43:03 +00:00
"time"
2024-09-01 14:47:24 +00:00
"github.com/zeromicro/go-zero/core/stores/redis"
"github.com/zeromicro/go-zero/zrpc"
)
2024-08-28 09:09:01 +00:00
type Config struct {
zrpc.RpcServerConf
2024-09-01 13:49:28 +00:00
Mongo struct {
Schema string
User string
Password string
Host string
Port string
Database string
}
2024-09-01 13:49:28 +00:00
TimelineSetting struct {
Expire int64 // Second
MaxLength int64 // 暫存筆數
}
2024-09-01 14:47:24 +00:00
// Redis Cluster
RedisCluster redis.RedisConf
2024-09-02 13:43:03 +00:00
2024-09-03 11:20:10 +00:00
// 圖形資料庫
2024-09-02 13:43:03 +00:00
Neo4J struct {
URI string
Username string
Password string
MaxConnectionPoolSize int
MaxConnectionLifetime time.Duration
ConnectionTimeout time.Duration
LogLevel string
}
2024-08-28 09:09:01 +00:00
}