move subpackages into internal/

This commit is contained in:
aler9 2020-11-01 22:56:56 +01:00
parent 42fa504014
commit 5facab1a48
24 changed files with 36 additions and 36 deletions

View File

@ -17,10 +17,10 @@ import (
"github.com/aler9/gortsplib/headers"
"github.com/aler9/gortsplib/rtcpreceiver"
"github.com/aler9/rtsp-simple-server/conf"
"github.com/aler9/rtsp-simple-server/externalcmd"
"github.com/aler9/rtsp-simple-server/serverudp"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/conf"
"github.com/aler9/rtsp-simple-server/internal/externalcmd"
"github.com/aler9/rtsp-simple-server/internal/serverudp"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
const (

View File

@ -8,11 +8,11 @@ import (
"github.com/aler9/gortsplib/base"
"github.com/aler9/gortsplib/headers"
"github.com/aler9/rtsp-simple-server/client"
"github.com/aler9/rtsp-simple-server/pathman"
"github.com/aler9/rtsp-simple-server/servertcp"
"github.com/aler9/rtsp-simple-server/serverudp"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/client"
"github.com/aler9/rtsp-simple-server/internal/pathman"
"github.com/aler9/rtsp-simple-server/internal/servertcp"
"github.com/aler9/rtsp-simple-server/internal/serverudp"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
type Parent interface {

View File

@ -9,8 +9,8 @@ import (
"github.com/aler9/gortsplib/headers"
"gopkg.in/yaml.v2"
"github.com/aler9/rtsp-simple-server/confenv"
"github.com/aler9/rtsp-simple-server/loghandler"
"github.com/aler9/rtsp-simple-server/internal/confenv"
"github.com/aler9/rtsp-simple-server/internal/loghandler"
)
type Conf struct {

View File

@ -5,7 +5,7 @@ import (
"log"
"os"
"github.com/aler9/rtsp-simple-server/syslog"
"github.com/aler9/rtsp-simple-server/internal/syslog"
)
type Destination int

View File

@ -9,7 +9,7 @@ import (
"sync/atomic"
"time"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
const (

View File

@ -11,12 +11,12 @@ import (
"github.com/aler9/gortsplib"
"github.com/aler9/gortsplib/base"
"github.com/aler9/rtsp-simple-server/client"
"github.com/aler9/rtsp-simple-server/conf"
"github.com/aler9/rtsp-simple-server/externalcmd"
"github.com/aler9/rtsp-simple-server/sourcertmp"
"github.com/aler9/rtsp-simple-server/sourcertsp"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/client"
"github.com/aler9/rtsp-simple-server/internal/conf"
"github.com/aler9/rtsp-simple-server/internal/externalcmd"
"github.com/aler9/rtsp-simple-server/internal/sourcertmp"
"github.com/aler9/rtsp-simple-server/internal/sourcertsp"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
func newEmptyTimer() *time.Timer {

View File

@ -9,10 +9,10 @@ import (
"github.com/aler9/gortsplib/base"
"github.com/aler9/gortsplib/headers"
"github.com/aler9/rtsp-simple-server/client"
"github.com/aler9/rtsp-simple-server/conf"
"github.com/aler9/rtsp-simple-server/path"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/client"
"github.com/aler9/rtsp-simple-server/internal/conf"
"github.com/aler9/rtsp-simple-server/internal/path"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
type Parent interface {

View File

@ -14,7 +14,7 @@ import (
"github.com/notedit/rtmp/codec/h264"
"github.com/notedit/rtmp/format/rtmp"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
const (

View File

@ -7,7 +7,7 @@ import (
"github.com/aler9/gortsplib"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
const (

20
main.go
View File

@ -10,16 +10,16 @@ import (
"github.com/aler9/gortsplib"
"gopkg.in/alecthomas/kingpin.v2"
"github.com/aler9/rtsp-simple-server/clientman"
"github.com/aler9/rtsp-simple-server/conf"
"github.com/aler9/rtsp-simple-server/confwatcher"
"github.com/aler9/rtsp-simple-server/loghandler"
"github.com/aler9/rtsp-simple-server/metrics"
"github.com/aler9/rtsp-simple-server/pathman"
"github.com/aler9/rtsp-simple-server/pprof"
"github.com/aler9/rtsp-simple-server/servertcp"
"github.com/aler9/rtsp-simple-server/serverudp"
"github.com/aler9/rtsp-simple-server/stats"
"github.com/aler9/rtsp-simple-server/internal/clientman"
"github.com/aler9/rtsp-simple-server/internal/conf"
"github.com/aler9/rtsp-simple-server/internal/confwatcher"
"github.com/aler9/rtsp-simple-server/internal/loghandler"
"github.com/aler9/rtsp-simple-server/internal/metrics"
"github.com/aler9/rtsp-simple-server/internal/pathman"
"github.com/aler9/rtsp-simple-server/internal/pprof"
"github.com/aler9/rtsp-simple-server/internal/servertcp"
"github.com/aler9/rtsp-simple-server/internal/serverudp"
"github.com/aler9/rtsp-simple-server/internal/stats"
)
var Version = "v0.0.0"

View File

@ -14,7 +14,7 @@ import (
"github.com/aler9/gortsplib"
"github.com/stretchr/testify/require"
"github.com/aler9/rtsp-simple-server/conf"
"github.com/aler9/rtsp-simple-server/internal/conf"
)
var ownDockerIp = func() string {