MCPcopy Create free account
hub / github.com/Monibuca/engine / Engine

Struct Engine

config/types.go:216–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216type Engine struct {
217 Publish
218 Subscribe
219 HTTP
220 Console
221 EnableAVCC bool `default:"true" desc:"启用AVCC格式,rtmp、http-flv协议使用"` //启用AVCC格式,rtmp、http-flv协议使用
222 EnableRTP bool `default:"true" desc:"启用RTP格式,rtsp、webrtc等协议使用"` //启用RTP格式,rtsp、webrtc等协议使用
223 EnableSubEvent bool `default:"true" desc:"启用订阅事件,禁用可以提高性能"` //启用订阅事件,禁用可以提高性能
224 EnableAuth bool `default:"true" desc:"启用鉴权"` //启用鉴权
225 LogLang string `default:"zh" desc:"日志语言" enum:"zh:中文,en:英文"` //日志语言
226 LogLevel string `default:"info" enum:"trace:跟踪,debug:调试,info:信息,warn:警告,error:错误"` //日志级别
227 EventBusSize int `default:"10" desc:"事件总线大小"` //事件总线大小
228 PulseInterval time.Duration `default:"5s" desc:"心跳事件间隔"` //心跳事件间隔
229 DisableAll bool `default:"false" desc:"禁用所有插件"` //禁用所有插件
230 RTPReorderBufferLen int `default:"50" desc:"RTP重排序缓冲区长度"` //RTP重排序缓冲区长度
231 PoolSize int `desc:"内存池大小"` //内存池大小
232 enableReport bool `default:"false"` //启用报告,用于统计和监控
233 reportStream quic.Stream // console server connection
234 instanceId string // instance id 来自console
235}
236
237func (cfg *Engine) GetEnableReport() bool {
238 return cfg.enableReport

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected