From a37c11daf8c4aa207186c4ef030d8a35f251d433 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 1 Nov 2023 01:03:28 -0700 Subject: [PATCH] refactor: rename package to transcoder --- main.go | 6 +++--- {go_vod => transcoder}/chunk.go | 2 +- {go_vod => transcoder}/config.go | 2 +- {go_vod => transcoder}/handler.go | 2 +- {go_vod => transcoder}/manager.go | 2 +- {go_vod => transcoder}/stream.go | 2 +- {go_vod => transcoder}/temp.go | 2 +- {go_vod => transcoder}/util.go | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) rename {go_vod => transcoder}/chunk.go (90%) rename {go_vod => transcoder}/config.go (99%) rename {go_vod => transcoder}/handler.go (99%) rename {go_vod => transcoder}/manager.go (99%) rename {go_vod => transcoder}/stream.go (99%) rename {go_vod => transcoder}/temp.go (98%) rename {go_vod => transcoder}/util.go (93%) diff --git a/main.go b/main.go index 194a782b..d84db95c 100644 --- a/main.go +++ b/main.go @@ -5,14 +5,14 @@ import ( "log" "os" - "github.com/pulsejet/go-vod/go_vod" + "github.com/pulsejet/go-vod/transcoder" ) const VERSION = "0.1.28" func main() { // Build initial configuration - c := &go_vod.Config{ + c := &transcoder.Config{ VersionMonitor: false, Version: VERSION, Bind: ":47788", @@ -40,7 +40,7 @@ func main() { c.AutoDetect() // Start server - code := go_vod.NewHandler(c).Start() + code := transcoder.NewHandler(c).Start() // Exit log.Println("Exiting go-vod with status code", code) diff --git a/go_vod/chunk.go b/transcoder/chunk.go similarity index 90% rename from go_vod/chunk.go rename to transcoder/chunk.go index 7cb13fa6..77018491 100644 --- a/go_vod/chunk.go +++ b/transcoder/chunk.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder type Chunk struct { id int diff --git a/go_vod/config.go b/transcoder/config.go similarity index 99% rename from go_vod/config.go rename to transcoder/config.go index 9514da68..526ed890 100644 --- a/go_vod/config.go +++ b/transcoder/config.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder import ( "encoding/json" diff --git a/go_vod/handler.go b/transcoder/handler.go similarity index 99% rename from go_vod/handler.go rename to transcoder/handler.go index c3c8baf4..8c5bb085 100644 --- a/go_vod/handler.go +++ b/transcoder/handler.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder import ( "context" diff --git a/go_vod/manager.go b/transcoder/manager.go similarity index 99% rename from go_vod/manager.go rename to transcoder/manager.go index 31e2b706..7e0e2a60 100644 --- a/go_vod/manager.go +++ b/transcoder/manager.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder import ( "bytes" diff --git a/go_vod/stream.go b/transcoder/stream.go similarity index 99% rename from go_vod/stream.go rename to transcoder/stream.go index 4d88bea5..721f071d 100644 --- a/go_vod/stream.go +++ b/transcoder/stream.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder import ( "bufio" diff --git a/go_vod/temp.go b/transcoder/temp.go similarity index 98% rename from go_vod/temp.go rename to transcoder/temp.go index 43eac11d..08c53733 100644 --- a/go_vod/temp.go +++ b/transcoder/temp.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder import ( "encoding/json" diff --git a/go_vod/util.go b/transcoder/util.go similarity index 93% rename from go_vod/util.go rename to transcoder/util.go index 4e52606f..c2d7940f 100644 --- a/go_vod/util.go +++ b/transcoder/util.go @@ -1,4 +1,4 @@ -package go_vod +package transcoder import "net/http"