uplink/main.go

26 lines
470 B
Go
Raw Normal View History

2018-04-10 11:48:51 +00:00
package main
import (
"log"
2018-04-11 15:55:15 +00:00
"git.icedream.tech/icedream/uplink/app"
"git.icedream.tech/icedream/uplink/plugins/icecast/output"
"git.icedream.tech/icedream/uplink/plugins/test/sine"
2018-04-10 11:48:51 +00:00
)
func main() {
2018-04-11 15:55:15 +00:00
if err := run(); err != nil {
log.Fatal(err)
}
}
2018-04-10 11:48:51 +00:00
2018-04-11 15:55:15 +00:00
func run() (err error) {
backend := app.New()
// backend.UsePlugin(icecast_input.Plugin)
backend.UsePlugin(icecast_output.Plugin)
backend.UsePlugin(sine.Plugin)
backend.Init()
err = backend.Run()
return
2018-04-10 11:48:51 +00:00
}