diff --git a/configure/channel.go b/configure/channel.go index 270c52a..f85fb8f 100755 --- a/configure/channel.go +++ b/configure/channel.go @@ -3,7 +3,7 @@ package configure import ( "fmt" - "livego/utils/uid" + "github.com/gwuhaolin/livego/utils/uid" "github.com/go-redis/redis/v7" "github.com/patrickmn/go-cache" diff --git a/container/flv/demuxer.go b/container/flv/demuxer.go index 896d39a..c4f69ec 100755 --- a/container/flv/demuxer.go +++ b/container/flv/demuxer.go @@ -2,7 +2,7 @@ package flv import ( "fmt" - "livego/av" + "github.com/gwuhaolin/livego/av" ) var ( diff --git a/container/flv/muxer.go b/container/flv/muxer.go index f7ef137..fdcc07a 100755 --- a/container/flv/muxer.go +++ b/container/flv/muxer.go @@ -7,11 +7,11 @@ import ( "strings" "time" - "livego/av" - "livego/configure" - "livego/protocol/amf" - "livego/utils/pio" - "livego/utils/uid" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/configure" + "github.com/gwuhaolin/livego/protocol/amf" + "github.com/gwuhaolin/livego/utils/pio" + "github.com/gwuhaolin/livego/utils/uid" log "github.com/sirupsen/logrus" ) diff --git a/container/flv/tag.go b/container/flv/tag.go index d2aec4f..5c85466 100755 --- a/container/flv/tag.go +++ b/container/flv/tag.go @@ -3,7 +3,7 @@ package flv import ( "fmt" - "livego/av" + "github.com/gwuhaolin/livego/av" ) type flvTag struct { diff --git a/container/ts/muxer.go b/container/ts/muxer.go index 8f7ad3d..cbb9981 100755 --- a/container/ts/muxer.go +++ b/container/ts/muxer.go @@ -3,7 +3,7 @@ package ts import ( "io" - "livego/av" + "github.com/gwuhaolin/livego/av" ) const ( diff --git a/container/ts/muxer_test.go b/container/ts/muxer_test.go index 5ee3cf3..f13eacc 100755 --- a/container/ts/muxer_test.go +++ b/container/ts/muxer_test.go @@ -3,7 +3,7 @@ package ts import ( "testing" - "livego/av" + "github.com/gwuhaolin/livego/av" "github.com/stretchr/testify/assert" ) diff --git a/go.mod b/go.mod index e1cf69e..6503fa1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module livego +module github.com/gwuhaolin/livego go 1.13 @@ -14,6 +14,7 @@ require ( github.com/sirupsen/logrus v1.5.0 github.com/spf13/pflag v1.0.3 github.com/spf13/viper v1.6.3 + github.com/stretchr/objx v0.1.1 // indirect github.com/stretchr/testify v1.4.0 github.com/urfave/negroni v1.0.0 // indirect ) diff --git a/main.go b/main.go index 32a9f2d..2cf6eca 100755 --- a/main.go +++ b/main.go @@ -2,11 +2,11 @@ package main import ( "fmt" - "livego/configure" - "livego/protocol/api" - "livego/protocol/hls" - "livego/protocol/httpflv" - "livego/protocol/rtmp" + "github.com/gwuhaolin/livego/configure" + "github.com/gwuhaolin/livego/protocol/api" + "github.com/gwuhaolin/livego/protocol/hls" + "github.com/gwuhaolin/livego/protocol/httpflv" + "github.com/gwuhaolin/livego/protocol/rtmp" "net" "path" "runtime" diff --git a/parser/aac/parser.go b/parser/aac/parser.go index f05bcf6..81af84f 100755 --- a/parser/aac/parser.go +++ b/parser/aac/parser.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "livego/av" + "github.com/gwuhaolin/livego/av" ) type mpegExtension struct { diff --git a/parser/parser.go b/parser/parser.go index 8fa8f9b..e256e5e 100755 --- a/parser/parser.go +++ b/parser/parser.go @@ -4,10 +4,10 @@ import ( "fmt" "io" - "livego/av" - "livego/parser/aac" - "livego/parser/h264" - "livego/parser/mp3" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/parser/aac" + "github.com/gwuhaolin/livego/parser/h264" + "github.com/gwuhaolin/livego/parser/mp3" ) var ( diff --git a/protocol/api/api.go b/protocol/api/api.go index 20cb22b..c424580 100755 --- a/protocol/api/api.go +++ b/protocol/api/api.go @@ -6,10 +6,10 @@ import ( "net" "net/http" - "livego/av" - "livego/configure" - "livego/protocol/rtmp" - "livego/protocol/rtmp/rtmprelay" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/configure" + "github.com/gwuhaolin/livego/protocol/rtmp" + "github.com/gwuhaolin/livego/protocol/rtmp/rtmprelay" jwtmiddleware "github.com/auth0/go-jwt-middleware" "github.com/dgrijalva/jwt-go" diff --git a/protocol/hls/hls.go b/protocol/hls/hls.go index 8378161..57e2ba2 100755 --- a/protocol/hls/hls.go +++ b/protocol/hls/hls.go @@ -2,7 +2,7 @@ package hls import ( "fmt" - "livego/configure" + "github.com/gwuhaolin/livego/configure" "net" "net/http" "path" @@ -10,7 +10,7 @@ import ( "strings" "time" - "livego/av" + "github.com/gwuhaolin/livego/av" cmap "github.com/orcaman/concurrent-map" log "github.com/sirupsen/logrus" diff --git a/protocol/hls/source.go b/protocol/hls/source.go index 5b2ef8f..0d9dc7f 100644 --- a/protocol/hls/source.go +++ b/protocol/hls/source.go @@ -3,13 +3,13 @@ package hls import ( "bytes" "fmt" - "livego/configure" + "github.com/gwuhaolin/livego/configure" "time" - "livego/av" - "livego/container/flv" - "livego/container/ts" - "livego/parser" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/container/flv" + "github.com/gwuhaolin/livego/container/ts" + "github.com/gwuhaolin/livego/parser" log "github.com/sirupsen/logrus" ) diff --git a/protocol/httpflv/server.go b/protocol/httpflv/server.go index 07dc2f2..3d7f665 100644 --- a/protocol/httpflv/server.go +++ b/protocol/httpflv/server.go @@ -6,8 +6,8 @@ import ( "net/http" "strings" - "livego/av" - "livego/protocol/rtmp" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/protocol/rtmp" log "github.com/sirupsen/logrus" ) diff --git a/protocol/httpflv/writer.go b/protocol/httpflv/writer.go index bb65ade..e6caa73 100755 --- a/protocol/httpflv/writer.go +++ b/protocol/httpflv/writer.go @@ -5,10 +5,10 @@ import ( "net/http" "time" - "livego/av" - "livego/protocol/amf" - "livego/utils/pio" - "livego/utils/uid" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/protocol/amf" + "github.com/gwuhaolin/livego/utils/pio" + "github.com/gwuhaolin/livego/utils/uid" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/cache/cache.go b/protocol/rtmp/cache/cache.go index 71af1de..e10e1d1 100755 --- a/protocol/rtmp/cache/cache.go +++ b/protocol/rtmp/cache/cache.go @@ -1,8 +1,8 @@ package cache import ( - "livego/av" - "livego/configure" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/configure" ) type Cache struct { diff --git a/protocol/rtmp/cache/gop.go b/protocol/rtmp/cache/gop.go index bbf28a1..fde6d19 100755 --- a/protocol/rtmp/cache/gop.go +++ b/protocol/rtmp/cache/gop.go @@ -3,7 +3,7 @@ package cache import ( "fmt" - "livego/av" + "github.com/gwuhaolin/livego/av" ) var ( diff --git a/protocol/rtmp/cache/special.go b/protocol/rtmp/cache/special.go index 2083721..5d03529 100755 --- a/protocol/rtmp/cache/special.go +++ b/protocol/rtmp/cache/special.go @@ -3,8 +3,8 @@ package cache import ( "bytes" - "livego/av" - "livego/protocol/amf" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/protocol/amf" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/core/chunk_stream.go b/protocol/rtmp/core/chunk_stream.go index 379646b..33970c4 100755 --- a/protocol/rtmp/core/chunk_stream.go +++ b/protocol/rtmp/core/chunk_stream.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "fmt" - "livego/av" - "livego/utils/pool" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/utils/pool" ) type ChunkStream struct { diff --git a/protocol/rtmp/core/chunk_stream_test.go b/protocol/rtmp/core/chunk_stream_test.go index 94cd05a..7227eb1 100755 --- a/protocol/rtmp/core/chunk_stream_test.go +++ b/protocol/rtmp/core/chunk_stream_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "livego/utils/pool" + "github.com/gwuhaolin/livego/utils/pool" "github.com/stretchr/testify/assert" ) diff --git a/protocol/rtmp/core/conn.go b/protocol/rtmp/core/conn.go index 2e563a9..610a58c 100755 --- a/protocol/rtmp/core/conn.go +++ b/protocol/rtmp/core/conn.go @@ -5,8 +5,8 @@ import ( "net" "time" - "livego/utils/pio" - "livego/utils/pool" + "github.com/gwuhaolin/livego/utils/pio" + "github.com/gwuhaolin/livego/utils/pool" ) const ( diff --git a/protocol/rtmp/core/conn_client.go b/protocol/rtmp/core/conn_client.go index c9a7048..66eb5f0 100755 --- a/protocol/rtmp/core/conn_client.go +++ b/protocol/rtmp/core/conn_client.go @@ -9,8 +9,8 @@ import ( neturl "net/url" "strings" - "livego/av" - "livego/protocol/amf" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/protocol/amf" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/core/conn_server.go b/protocol/rtmp/core/conn_server.go index 83bbf69..2bb2232 100755 --- a/protocol/rtmp/core/conn_server.go +++ b/protocol/rtmp/core/conn_server.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "livego/av" - "livego/protocol/amf" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/protocol/amf" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/core/conn_test.go b/protocol/rtmp/core/conn_test.go index 1f4cb9b..a1103e9 100755 --- a/protocol/rtmp/core/conn_test.go +++ b/protocol/rtmp/core/conn_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "livego/utils/pool" + "github.com/gwuhaolin/livego/utils/pool" "github.com/stretchr/testify/assert" ) diff --git a/protocol/rtmp/core/handshake.go b/protocol/rtmp/core/handshake.go index 61a79b2..e558376 100755 --- a/protocol/rtmp/core/handshake.go +++ b/protocol/rtmp/core/handshake.go @@ -10,7 +10,7 @@ import ( "time" - "livego/utils/pio" + "github.com/gwuhaolin/livego/utils/pio" ) var ( diff --git a/protocol/rtmp/rtmp.go b/protocol/rtmp/rtmp.go index a724995..ec57546 100755 --- a/protocol/rtmp/rtmp.go +++ b/protocol/rtmp/rtmp.go @@ -8,12 +8,12 @@ import ( "strings" "time" - "livego/utils/uid" + "github.com/gwuhaolin/livego/utils/uid" - "livego/av" - "livego/configure" - "livego/container/flv" - "livego/protocol/rtmp/core" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/configure" + "github.com/gwuhaolin/livego/container/flv" + "github.com/gwuhaolin/livego/protocol/rtmp/core" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/rtmprelay/rtmprelay.go b/protocol/rtmp/rtmprelay/rtmprelay.go index a686a52..af152e2 100644 --- a/protocol/rtmp/rtmprelay/rtmprelay.go +++ b/protocol/rtmp/rtmprelay/rtmprelay.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "livego/protocol/amf" - "livego/protocol/rtmp/core" + "github.com/gwuhaolin/livego/protocol/amf" + "github.com/gwuhaolin/livego/protocol/rtmp/core" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/rtmprelay/staticrelay.go b/protocol/rtmp/rtmprelay/staticrelay.go index d91214a..8723850 100644 --- a/protocol/rtmp/rtmprelay/staticrelay.go +++ b/protocol/rtmp/rtmprelay/staticrelay.go @@ -4,9 +4,9 @@ import ( "fmt" "sync" - "livego/av" - "livego/configure" - "livego/protocol/rtmp/core" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/configure" + "github.com/gwuhaolin/livego/protocol/rtmp/core" log "github.com/sirupsen/logrus" ) diff --git a/protocol/rtmp/stream.go b/protocol/rtmp/stream.go index 0de6948..3ebd276 100755 --- a/protocol/rtmp/stream.go +++ b/protocol/rtmp/stream.go @@ -5,9 +5,9 @@ import ( "strings" "time" - "livego/av" - "livego/protocol/rtmp/cache" - "livego/protocol/rtmp/rtmprelay" + "github.com/gwuhaolin/livego/av" + "github.com/gwuhaolin/livego/protocol/rtmp/cache" + "github.com/gwuhaolin/livego/protocol/rtmp/rtmprelay" cmap "github.com/orcaman/concurrent-map" log "github.com/sirupsen/logrus" diff --git a/utils/queue/queue.go b/utils/queue/queue.go index 03e4b6f..fc82ff9 100755 --- a/utils/queue/queue.go +++ b/utils/queue/queue.go @@ -3,7 +3,7 @@ package queue import ( "sync" - "livego/av" + "github.com/gwuhaolin/livego/av" ) // Queue is a basic FIFO queue for Messages.