Skip to content

Commit

Permalink
added doc and removed unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Seidel committed Aug 26, 2019
1 parent 9bafedf commit 170068b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exporter/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 170068b

Please sign in to comment.