升级日志系统

This commit is contained in:
dexter
2022-02-11 00:27:56 +08:00
parent f9d0567f45
commit 76f7e8ab8b
29 changed files with 4136 additions and 367 deletions

View File

@@ -3,7 +3,7 @@ package config
type Publish struct {
PubAudio bool
PubVideo bool
KillExit bool // 是否踢掉已经存在的发布者
KickExsit bool // 是否踢掉已经存在的发布者
PublishTimeout Second // 发布无数据超时
WaitCloseTimeout Second // 延迟自动关闭(无订阅时)
}
@@ -36,10 +36,6 @@ type Engine struct {
EnableFLV bool //开启FLV格式hdl协议使用
}
func (g *Engine) Update(override Config) {
override.Unmarshal(g)
}
var Global = &Engine{
Publish{true, true, false, 10, 10},
Subscribe{true, true, false, 10},