25 lines
537 B
Go
25 lines
537 B
Go
package ender
|
|
|
|
import (
|
|
"openreplay/backend/pkg/env"
|
|
)
|
|
|
|
type Config struct {
|
|
GroupEvents string
|
|
TopicTrigger string
|
|
LoggerTimeout int
|
|
TopicRawWeb string
|
|
TopicRawIOS string
|
|
ProducerTimeout int
|
|
}
|
|
|
|
func New() *Config {
|
|
return &Config{
|
|
GroupEvents: env.String("GROUP_ENDER"),
|
|
TopicTrigger: env.String("TOPIC_TRIGGER"),
|
|
LoggerTimeout: env.Int("LOG_QUEUE_STATS_INTERVAL_SEC"),
|
|
TopicRawWeb: env.String("TOPIC_RAW_WEB"),
|
|
TopicRawIOS: env.String("TOPIC_RAW_IOS"),
|
|
ProducerTimeout: 2000,
|
|
}
|
|
}
|