You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
484 B
Go
33 lines
484 B
Go
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
)
|
|
|
|
type (
|
|
Kafka struct {
|
|
Addr []string
|
|
Topic string
|
|
ConsumerGroupId string
|
|
}
|
|
Config struct {
|
|
zrpc.RpcServerConf
|
|
Log logx.LogConf
|
|
DB struct {
|
|
DataSource string
|
|
}
|
|
|
|
Danmaku struct {
|
|
Kafka Kafka
|
|
Command struct {
|
|
Keys []string
|
|
}
|
|
}
|
|
|
|
User struct {
|
|
UpdateDuration int64 // 用户信息更新最短间隔 单位 h
|
|
}
|
|
}
|
|
)
|