mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-06 09:06:52 +08:00
加入summary 优化http监听逻辑,实现基本身份认证
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package config
|
||||
|
||||
import "net/http"
|
||||
|
||||
type PublishConfig interface {
|
||||
GetPublishConfig() *Publish
|
||||
}
|
||||
@@ -77,10 +79,12 @@ type Engine struct {
|
||||
EnableRTP bool //启用RTP格式,rtsp、gb18181等协议使用
|
||||
EnableFLV bool //开启FLV格式,hdl协议使用
|
||||
}
|
||||
func (cfg *Engine) OnEvent(event any) {
|
||||
|
||||
}
|
||||
var Global = &Engine{
|
||||
Publish{true, true, false, 10, 0},
|
||||
Subscribe{true, true, false, 10},
|
||||
HTTP{ListenAddr: ":8080", CORS: true},
|
||||
HTTP{ListenAddr: ":8080", CORS: true, mux: http.DefaultServeMux},
|
||||
false, true, true, true,
|
||||
}
|
||||
|
Reference in New Issue
Block a user