MCPcopy Index your code
hub / github.com/Monibuca/engine / FilterStreams

Function FilterStreams

stream.go:107–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105var Streams util.Map[string, *Stream]
106
107func FilterStreams[T IPublisher]() (ss []*Stream) {
108 Streams.Range(func(_ string, s *Stream) {
109 if _, ok := s.Publisher.(T); ok {
110 ss = append(ss, s)
111 }
112 })
113 return
114}
115
116type StreamTimeoutConfig struct {
117 PublishTimeout time.Duration //发布者无数据后超时

Callers

nothing calls this directly

Calls 1

RangeMethod · 0.45

Tested by

no test coverage detected