Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConnectionRetryMaxInterval indicates the maximum interval to retry icecast // connections ConnectionRetryMaxInterval = time.Second * 2 // ConnectionRetryMaxElapsedTime indicates how long to try retry before // erroring out completely. Set to 0 means it never errors out ConnectionRetryMaxElapsedTime = time.Second * 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrPort ¶
type AddrPort struct {
// contains filtered or unexported fields
}
func MustParseAddrPort ¶
func ParseAddrPort ¶
func (AddrPort) MarshalText ¶
func (*AddrPort) UnmarshalText ¶
type BackOff ¶
func NewConnectionBackoff ¶
NewConnectionBackoff returns a new backoff set to the intended configuration for connection retrying
type Config ¶
type Config struct { // RPC helpers, call these to get an RPC interface to // the named component Streamer radio.StreamerService Manager radio.ManagerService Tracker radio.ListenerTrackerService Queue radio.QueueService IRC radio.AnnounceService // contains filtered or unexported fields }
Config is a type-safe wrapper around the config type
func TestConfig ¶
func TestConfig() Config
TestConfig returns default config with RPC services disabled
func (Config) Conf ¶
func (c Config) Conf() config
Conf returns the configuration stored inside
NOTE: Conf returns a shallow-copy of the config value stored inside; so do not edit
any slices or maps that might be inside
func (Config) LoadAndUpdate ¶
func (Config) StoreConf ¶
func (c Config) StoreConf(new config)
StoreConf stores the configuration passed
func (Config) TriggerReload ¶
func (c Config) TriggerReload()
type Duration ¶
Duration is a time.Duration that supports Text(Un)Marshaler
func (Duration) MarshalText ¶
MarshalText implements encoding.TextMarshaler
func (*Duration) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler
Click to show internal directories.
Click to hide internal directories.