| 12345678910111213141516171819202122232425262728 |
- package config
- import (
- "github.com/zeromicro/go-queue/kq"
- "github.com/zeromicro/go-zero/rest"
- )
- type Config struct {
- rest.RestConf
- MaxConnectionIdle int // 最大空闲连接时间,秒数
- DefaultMaxConnectionIdleTime int // 默认空闲连接时间,秒数
- DefaultAckTimeout int // 默认ack超时时间,秒数
- DefaultConcurrency int // 默认并发数
- Auth struct {
- AccessSecret string
- AccessExpire int64
- }
- MsgChatTransfer struct {
- Topic string
- Addrs []string
- }
- MsgReadTransfer struct {
- Topic string
- Addrs []string
- }
- MsgPushToClientTransfer kq.KqConf
- }
|