Documentation
¶
Index ¶
Constants ¶
View Source
const ( // All our keys are stored in etcd below this prefix. The // slash is used as hierarchy separator for our keyspace. EtcdPrefix = "autoradio/" // MountPrefix stores the path to the mount configuration in // etcd. This should never change between releases, upgrades // to the configuration format should be backwards-compatible. MountPrefix = EtcdPrefix + "icecast/mounts/" // Paths for the cluster runtime data. Whenever the format of // this data changes, the ABIVersion should be increased. A // rolling restart of the cluster will then seamlessly cause a // transition to the new consensus (the cluster will be // partitioned in the meantime). ABIVersion = "4" // Prefixes for the etcd-based leader elections. ElectionPrefix = EtcdPrefix + "election/" + ABIVersion + "/" IcecastElectionPrefix = ElectionPrefix + "icecast/" TranscoderElectionPrefix = ElectionPrefix + "transcode/" // Prefix for the streams served directly by Icecast. IcecastMountPrefix = "/_stream" // Prefixes for etcd-based service discovery. EndpointPrefix = EtcdPrefix + "endpoints/" + ABIVersion + "/" PublicEndpointPrefix = EndpointPrefix + "frontend/public/" StatusEndpointPrefix = EndpointPrefix + "frontend/status/" )
Variables ¶
View Source
var IcecastPort = 8000
IcecastPort is the port that the Icecast server will listen on. Since we fully manage the system-wide Icecast instance, there's not much point in making this configurable.
Functions ¶
func GeneratePassword ¶
func GeneratePassword() string
GeneratePassword returns a new random password.
func GenerateUsername ¶
GenerateUsername returns a username somehow related to the name of the mount, possibly unique (but not actually guaranteed to be so).
func IcecastPathToMountPath ¶
IcecastPathToMountPath returns the public mount name from an Icecast mount path. If 'path' does not start with IcecastMountPrefix, it is returned unchanged (though arguably this should be an error).
Types ¶
This section is empty.
Source Files
¶
- api.go
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
radiobench
command
|
|
|
radioctl
command
|
|
|
radiod
command
|
|
|
radioprober
command
|
|
|
transcoderd
command
|
|
|
coordination
|
|
|
lbv2
Modular building blocks for a traffic control engine.
|
Modular building blocks for a traffic control engine. |
Click to show internal directories.
Click to hide internal directories.