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