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

Struct Push

config/types.go:173–178  ·  view source on GitHub ↗

func (p *Pull) AddPullOnStart(streamPath string, url string) { p.PullOnStartLocker.Lock() defer p.PullOnStartLocker.Unlock() if p.PullOnStart == nil { p.PullOnStart = make(map[string]string) } p.PullOnStart[streamPath] = url } func (p *Pull) AddPullOnSub(streamPath string, url string) { p.Pu

Source from the content-addressed store, hash-verified

171// }
172
173type Push struct {
174 EnableRegexp bool `desc:"是否启用正则表达式"` // 是否启用正则表达式
175 RePush int `desc:"断开后自动重试次数,0:不重试,-1:无限重试"` // 断开后自动重推,0 表示不自动重推,-1 表示无限重推,高于0 的数代表最大重推次数
176 PushList map[string]string `desc:"自动推流列表"` // 自动推流列表
177 Proxy string `desc:"代理地址"` // 代理地址
178}
179
180func (p *Push) GetPushConfig() *Push {
181 return p

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected