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
parent
a7394217d5
commit
58d040b650
4
main.go
4
main.go
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package icecast_input
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
package main
|
||||
|
||||
import "C"
|
||||
package icecast_input
|
||||
|
||||
import (
|
||||
"git.icedream.tech/icedream/uplink/plugins"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package icecast_output
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
package main
|
||||
|
||||
import "C"
|
||||
package icecast_output
|
||||
|
||||
import (
|
||||
"git.icedream.tech/icedream/uplink/plugins"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package sine
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
package main
|
||||
|
||||
import "C"
|
||||
package sine
|
||||
|
||||
import (
|
||||
"git.icedream.tech/icedream/uplink/plugins"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package sine
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
Loading…
Reference in New Issue