Get rid of extra code.
parent
a3de2f8b19
commit
50e7125bce
|
@ -1,18 +1,14 @@
|
||||||
package icecast_output
|
package icecast_output
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"runtime"
|
|
||||||
|
|
||||||
"git.icedream.tech/icedream/uplink/app/authentication"
|
"git.icedream.tech/icedream/uplink/app/authentication"
|
||||||
"git.icedream.tech/icedream/uplink/app/channels"
|
"git.icedream.tech/icedream/uplink/app/channels"
|
||||||
"git.icedream.tech/icedream/uplink/app/media"
|
|
||||||
"git.icedream.tech/icedream/uplink/app/servers/http"
|
"git.icedream.tech/icedream/uplink/app/servers/http"
|
||||||
"git.icedream.tech/icedream/uplink/app/streams"
|
"git.icedream.tech/icedream/uplink/app/streams"
|
||||||
humanize "github.com/dustin/go-humanize"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -29,7 +25,6 @@ func (instance *pluginInstance) SetAuthenticator(authenticator authentication.Au
|
||||||
func (instance *pluginInstance) SetChannelManager(channelManager *channels.ChannelManager) {
|
func (instance *pluginInstance) SetChannelManager(channelManager *channels.ChannelManager) {
|
||||||
instance.channelManager = channelManager
|
instance.channelManager = channelManager
|
||||||
|
|
||||||
|
|
||||||
// TODO - handle channel and container closure
|
// TODO - handle channel and container closure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,8 +33,6 @@ func (instance *pluginInstance) SetServer(server *httpserver.Server) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (instance *pluginInstance) Init() {
|
func (instance *pluginInstance) Init() {
|
||||||
instance.ringBuffers = map[string]map[string]*rbuf.FixedSizeRingBuf{}
|
|
||||||
|
|
||||||
router := instance.server.Router
|
router := instance.server.Router
|
||||||
|
|
||||||
router.GET("/:channel/:container", func(ctx *gin.Context) {
|
router.GET("/:channel/:container", func(ctx *gin.Context) {
|
||||||
|
|
Loading…
Reference in New Issue