From 170068b60ed0983328a1b98a03d6ec8ee7e883ac Mon Sep 17 00:00:00 2001 From: Kevin Seidel Date: Mon, 26 Aug 2019 16:13:51 +0200 Subject: [PATCH] added doc and removed unnecessary method --- exporter/stats.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/stats.go b/exporter/stats.go index a7c3130..fb51904 100644 --- a/exporter/stats.go +++ b/exporter/stats.go @@ -2,16 +2,16 @@ package main import "encoding/xml" +// Stats Container for individual stats as they are broadcasted by the JVBs. +// Stats is then registered as gosrc.io/xmpp/stanza.PresExetension which unmarshals +// the xml coming in via xmpp into these Stat structs type Stats struct { XMLName xml.Name `xml:"http://jitsi.org/protocol/colibri stats"` Stats []Stat `xml:"stat"` } +// Stat Individual stat containing a single metric, such as Name="bit_rate_upload", Value="0" type Stat struct { Name string `xml:"name,attr"` Value string `xml:"value,attr"` } - -func (s Stats) Namespace() string { - return s.XMLName.Space -}