diff --git a/http.go b/http.go index beec4e6bc9e9a27e7df4e90581b4d784795a05b7..702c35bcf25c9268d7bdbef25da4bb291a085795 100644 --- a/http.go +++ b/http.go @@ -1,13 +1,3 @@ -// HTTP redirector. -// -// All user-facing traffic reaches the redirector first (this is -// where the first-level, high-ttl redirection points to). -// -// The purpose of the HTTP redirector is two-fold: sources will be -// proxied to the master icecast server, while clients will be served -// a .m3u file directly pointing at the relays. -// - package radioai import ( @@ -46,6 +36,15 @@ func (anc *activeNodesCache) GetNodes() []string { return anc.nodes } +// HTTP redirector. +// +// All user-facing traffic reaches the redirector first (this is +// where the first-level, high-ttl redirection points to). +// +// The purpose of the HTTP redirector is two-fold: sources will be +// proxied to the master icecast server, while clients will be served +// a .m3u file directly pointing at the relays. +// type HttpRedirector struct { client *RadioAPI nodeCache *activeNodesCache