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

Struct Subscriber

subscriber.go:131–136  ·  view source on GitHub ↗

Subscriber 订阅者实体定义

Source from the content-addressed store, hash-verified

129
130// Subscriber 订阅者实体定义
131type Subscriber struct {
132 IO
133 Config *config.Subscribe
134 readers []*track.AVRingReader
135 TrackPlayer `json:"-" yaml:"-"`
136}
137
138func (s *Subscriber) Subscribe(streamPath string, sub ISubscriber) error {
139 return s.receive(streamPath, sub)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected