Revert to standard package names for plugins.

We can still implement the plugins as go-plugins by implementing a
separate main package that makes use of the non-main code.
burst
Icedream 2018-04-11 09:35:00 +02:00
parent a7394217d5
commit 58d040b650
Signed by: icedream
GPG Key ID: C1D30A06E6490C14
8 changed files with 9 additions and 15 deletions

View File

@ -7,8 +7,8 @@ import (
"strconv"
"time"
"git.icedream.tech/icedream/uplink/app/sources"
"git.icedream.tech/icedream/uplink/app/streams"
"git.icedream.tech/icedream/uplink/plugins/test/sine"
humanize "github.com/dustin/go-humanize"
"github.com/gorilla/mux"
@ -28,7 +28,7 @@ func main() {
go func() {
log.Println("Sine stream goroutine started")
sine := new(sources.SineStream)
sine := new(sine.SineStream)
sine.Samplerate = 44100
sine.Frequency = 990
sine.Beep = true

View File

@ -1,4 +1,4 @@
package main
package icecast_input
import (
"io"

View File

@ -1,6 +1,4 @@
package main
import "C"
package icecast_input
import (
"git.icedream.tech/icedream/uplink/plugins"

View File

@ -1,4 +1,4 @@
package main
package icecast_output
import (
"io"

View File

@ -1,6 +1,4 @@
package main
import "C"
package icecast_output
import (
"git.icedream.tech/icedream/uplink/plugins"

View File

@ -1,4 +1,4 @@
package main
package sine
import (
"io"

View File

@ -1,6 +1,4 @@
package main
import "C"
package sine
import (
"git.icedream.tech/icedream/uplink/plugins"

View File

@ -1,4 +1,4 @@
package main
package sine
import (
"bytes"