From 74ba5931d3a48497763acdb0b486511c67640bde Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 15 Aug 2023 14:28:13 +0500 Subject: [PATCH] Removed unnecessary ingest file --- ingest.go | 12 ------------ main.go | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 ingest.go diff --git a/ingest.go b/ingest.go deleted file mode 100644 index 4fb0786..0000000 --- a/ingest.go +++ /dev/null @@ -1,12 +0,0 @@ -package main - -import "stream_server/rtmp" - -func NewIngestServer(srvr_type uint8, port string) (error) { - var err error - switch srvr_type { - case 0: - err = rtmp.NewServer(&port) - } - return err -} diff --git a/main.go b/main.go index 1f6c411..f048ec5 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,7 @@ package main +import "stream_server/rtmp" + const ( SRVTYPE_RTMP uint8 = iota ) @@ -13,3 +15,12 @@ func main() { for { } } + +func NewIngestServer(srvr_type uint8, port string) (error) { + var err error + switch srvr_type { + case 0: + err = rtmp.NewServer(&port) + } + return err +}