Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
728 B

package stats
func ptrInt64() *int64 {
v := int64(0)
return &v
}
type Stats struct {
// use pointers to avoid a crash on 32bit platforms
// https://github.com/golang/go/issues/9959
CountClients *int64
CountPublishers *int64
CountReaders *int64
CountSourcesRtsp *int64
CountSourcesRtspRunning *int64
CountSourcesRtmp *int64
CountSourcesRtmpRunning *int64
}
func New() *Stats {
return &Stats{
CountClients: ptrInt64(),
CountPublishers: ptrInt64(),
CountReaders: ptrInt64(),
CountSourcesRtsp: ptrInt64(),
CountSourcesRtspRunning: ptrInt64(),
CountSourcesRtmp: ptrInt64(),
CountSourcesRtmpRunning: ptrInt64(),
}
}