Documentation
¶
Index ¶
- func ExtractTitle(url string) (title string, err error)
- func ExtractURL(str string) (url string, err error)
- func FixInvalidUTF8(broken string) string
- func GetPage(url string) (string, error)
- func GetPageWithAuth(url string, user string, pass string) (string, error)
- func HateTrack(nick, track string) (bool, error)
- func IRCAction(conn *irc.Connection, channel, action string)
- func IRCAway(conn *irc.Connection, message ...string)
- func IRCInvite(conn *irc.Connection, nick, channel string)
- func IRCOper(conn *irc.Connection, user, pass string)
- func IRCRedispatch(conn *irc.Connection, code, raw, nick, host, source, user string, ...)
- func IRCTopic(conn *irc.Connection, channel string, topic ...string)
- func LikeTrack(nick, track string) (bool, error)
- func Request(nick, request string) (bool, error)
- func Sleep(milliseconds int64)
- func SliceToJavascriptArray(js *otto.Otto, slice interface{}) otto.Value
- type ShoutcastServerStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTitle ¶
func ExtractURL ¶
Extracts an URL out of a string
func FixInvalidUTF8 ¶
func IRCRedispatch ¶
Types ¶
type ShoutcastServerStats ¶
type ShoutcastServerStats struct {
CurrentListeners int `xml:"CURRENTLISTENERS"`
PeakListeners int `xml:"PEAKLISTENERS"`
MaxListeners int `xml:"MAXLISTENERS"`
UniqueListeners int `xml:"UNIQUELISTENERS"`
AverageTime int `xml:"AVERAGETIME"`
ServerGenre string `xml:"SERVERGENRE"`
ServerUrl string `xml:"SERVERURL"`
ServerTitle string `xml:"SERVERTITLE"`
SongTitle string `xml:"SONGTITLE"`
StreamHits int `xml:"STREAMHITS"`
StreamStatus int `xml:"STREAMSTATUS"`
BackupStatus int `xml:"BACKUPSTATUS"`
StreamPath string `xml:"STREAMPATH"`
StreamUptime int `xml:"STREAMUPTIME"`
BitRate int `xml:"BITRATE"`
Content string `xml:"CONTENT"`
Version string `xml:"VERSION"`
}
func GetShoutcastStats ¶
func GetShoutcastStats(cfg *config.Settings) (ShoutcastServerStats, error)
Does the full process for returning a populated shoutcast stat object
Click to show internal directories.
Click to hide internal directories.