Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶ added in v1.1.0
type Metadata struct {
StreamTitle string
}
Metadata represents the stream metadata sent by the server
func NewMetadata ¶ added in v1.1.0
NewMetadata returns parsed metadata
type MetadataCallbackFunc ¶ added in v1.1.0
type MetadataCallbackFunc func(m *Metadata)
MetadataCallbackFunc is the type of the function called when the stream metadata changes
type Stream ¶
type Stream struct { // The name of the server Name string // What category the server falls under Genre string // The description of the stream Description string // Homepage of the server URL string // Bitrate of the server Bitrate int // Optional function to be executed when stream metadata changes MetadataCallbackFunc MetadataCallbackFunc // contains filtered or unexported fields }
Stream represents an open shoutcast stream.
Click to show internal directories.
Click to hide internal directories.