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

Struct Pull

config/types.go:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95type Pull struct {
96 RePull int `desc:"断开后自动重试次数,0:不重试,-1:无限重试"` // 断开后自动重拉,0 表示不自动重拉,-1 表示无限重拉,高于0 的数代表最大重拉次数
97 EnableRegexp bool `desc:"是否启用正则表达式"` // 是否启用正则表达式
98 PullOnStart map[string]string `desc:"启动时拉流的列表"` // 启动时拉流的列表
99 PullOnSub map[string]string `desc:"订阅时自动拉流的列表"` // 订阅时自动拉流的列表
100 Proxy string `desc:"代理地址"` // 代理地址
101 PullOnSubLocker sync.RWMutex `yaml:"-" json:"-"`
102 PullOnStartLocker sync.RWMutex `yaml:"-" json:"-"`
103}
104
105func (p *Pull) GetPullConfig() *Pull {
106 return p

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected