Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestrictionTypeNone int = iota RestrictionTypeFirewalled RestrictionTypeBandWidth RestrictionTypeHighBandWidth )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanHit ¶
type ChanHit struct { IP string `xml:"ip,attr"` Hops int `xml:"hops,attr"` Listeners int `xml:"listeners,attr"` Relays int `xml:"relays,attr"` Uptime uint `xml:"uptime,attr"` Push bool `xml:"push,attr"` Relay bool `xml:"relay,attr"` Direct bool `xml:"direct,attr"` Cin bool `xml:"cin,attr"` Stable bool `xml:"stable,attr"` Version uint `xml:"version,attr"` Update uint `xml:"update,attr"` Tracker bool `xml:"tracker,attr"` }
type Channel ¶
type Channel struct { Name string `xml:"name,attr"` ID string `xml:"id,attr"` Bitrate int `xml:"bitrate,attr"` Type string `xml:"type,attr"` Genre string `xml:"genre,attr"` Desc string `xml:"desc,attr"` Url string `xml:"url,attr"` Uptime uint `xml:"uptime,attr"` Skip bool `xml:"skip,attr"` Comment string `xml:"comment,attr"` Age uint `xml:"age,attr"` Bcflags bool `xml:"bcflags,attr"` ChanHitStat struct { Hosts int `xml:"Hosts,attr"` Listeners int `xml:"listeners,attr"` Relays int `xml:"relays,attr"` Firewalled int `xml:"firewalled,attr"` Closest int `xml:"closest,attr"` Furthest int `xml:"furthest,attr"` Newest int `xml:"newest,attr"` ChanHit []ChanHit `xml:"host"` } `xml:"hits"` ChannelTrack struct { Title string `xml:"title,attr"` Artist string `xml:"artist,attr"` Album string `xml:"album,attr"` Genre string `xml:"genre,attr"` Contact string `xml:"contact,attr"` } `xml:"track"` }
type StatXML ¶
type StatXML struct { ChannelsFound struct { Channel []Channel `xml:"channel"` } `xml:"channels_found"` }
func GetStatXML ¶
type StreamOptions ¶
type StreamOptions struct { Prefix string NameSpace string HiddenListeners bool RestrictionType int Genre string }
func ParseGenre ¶
func ParseGenre(s string) (o StreamOptions, ok bool)
Click to show internal directories.
Click to hide internal directories.