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"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.icedream.tech/icedream/uplink/app/sources"
|
|
||||||
"git.icedream.tech/icedream/uplink/app/streams"
|
"git.icedream.tech/icedream/uplink/app/streams"
|
||||||
|
"git.icedream.tech/icedream/uplink/plugins/test/sine"
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
@ -28,7 +28,7 @@ func main() {
|
||||||
go func() {
|
go func() {
|
||||||
log.Println("Sine stream goroutine started")
|
log.Println("Sine stream goroutine started")
|
||||||
|
|
||||||
sine := new(sources.SineStream)
|
sine := new(sine.SineStream)
|
||||||
sine.Samplerate = 44100
|
sine.Samplerate = 44100
|
||||||
sine.Frequency = 990
|
sine.Frequency = 990
|
||||||
sine.Beep = true
|
sine.Beep = true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package icecast_input
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
package main
|
package icecast_input
|
||||||
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.icedream.tech/icedream/uplink/plugins"
|
"git.icedream.tech/icedream/uplink/plugins"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package icecast_output
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
package main
|
package icecast_output
|
||||||
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.icedream.tech/icedream/uplink/plugins"
|
"git.icedream.tech/icedream/uplink/plugins"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package sine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
package main
|
package sine
|
||||||
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.icedream.tech/icedream/uplink/plugins"
|
"git.icedream.tech/icedream/uplink/plugins"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package sine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
Loading…
Reference in New Issue