From df95c5be580da82167945e92960050c8a2f6db8a Mon Sep 17 00:00:00 2001 From: FZambia Date: Wed, 13 Nov 2024 22:53:11 +0200 Subject: [PATCH] runutil -> app --- internal/{runutil => app}/engine.go | 2 +- internal/{runutil => app}/graphite.go | 2 +- internal/{runutil => app}/grpc.go | 2 +- internal/{runutil => app}/log.go | 2 +- internal/{runutil => app}/mux.go | 2 +- internal/{runutil => app}/node.go | 2 +- internal/{runutil => app}/origin.go | 2 +- internal/{runutil => app}/proxy.go | 2 +- internal/{runutil => app}/run.go | 2 +- internal/{runutil => app}/tls.go | 2 +- main.go | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) rename internal/{runutil => app}/engine.go (99%) rename internal/{runutil => app}/graphite.go (97%) rename internal/{runutil => app}/grpc.go (99%) rename internal/{runutil => app}/log.go (98%) rename internal/{runutil => app}/mux.go (99%) rename internal/{runutil => app}/node.go (99%) rename internal/{runutil => app}/origin.go (98%) rename internal/{runutil => app}/proxy.go (99%) rename internal/{runutil => app}/run.go (99%) rename internal/{runutil => app}/tls.go (99%) diff --git a/internal/runutil/engine.go b/internal/app/engine.go similarity index 99% rename from internal/runutil/engine.go rename to internal/app/engine.go index 2106ff5af..157ce23bc 100644 --- a/internal/runutil/engine.go +++ b/internal/app/engine.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "fmt" diff --git a/internal/runutil/graphite.go b/internal/app/graphite.go similarity index 97% rename from internal/runutil/graphite.go rename to internal/app/graphite.go index 2b3d055fd..37128382f 100644 --- a/internal/runutil/graphite.go +++ b/internal/app/graphite.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "net" diff --git a/internal/runutil/grpc.go b/internal/app/grpc.go similarity index 99% rename from internal/runutil/grpc.go rename to internal/app/grpc.go index cab5d7282..dae74f09b 100644 --- a/internal/runutil/grpc.go +++ b/internal/app/grpc.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "crypto/tls" diff --git a/internal/runutil/log.go b/internal/app/log.go similarity index 98% rename from internal/runutil/log.go rename to internal/app/log.go index db2e0c7df..c62d2e931 100644 --- a/internal/runutil/log.go +++ b/internal/app/log.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "strings" diff --git a/internal/runutil/mux.go b/internal/app/mux.go similarity index 99% rename from internal/runutil/mux.go rename to internal/app/mux.go index 5bb1f3df6..5e33ac186 100644 --- a/internal/runutil/mux.go +++ b/internal/app/mux.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "crypto/tls" diff --git a/internal/runutil/node.go b/internal/app/node.go similarity index 99% rename from internal/runutil/node.go rename to internal/app/node.go index 2d43cb7f6..ea4b6e381 100644 --- a/internal/runutil/node.go +++ b/internal/app/node.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "os" diff --git a/internal/runutil/origin.go b/internal/app/origin.go similarity index 98% rename from internal/runutil/origin.go rename to internal/app/origin.go index 8f5bf6b39..41531890e 100644 --- a/internal/runutil/origin.go +++ b/internal/app/origin.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "net/http" diff --git a/internal/runutil/proxy.go b/internal/app/proxy.go similarity index 99% rename from internal/runutil/proxy.go rename to internal/app/proxy.go index 3dbcba9ca..6a2f80cb5 100644 --- a/internal/runutil/proxy.go +++ b/internal/app/proxy.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "fmt" diff --git a/internal/runutil/run.go b/internal/app/run.go similarity index 99% rename from internal/runutil/run.go rename to internal/app/run.go index 018d53b02..f5907ce88 100644 --- a/internal/runutil/run.go +++ b/internal/app/run.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "context" diff --git a/internal/runutil/tls.go b/internal/app/tls.go similarity index 99% rename from internal/runutil/tls.go rename to internal/app/tls.go index 1bb663952..27a16e191 100644 --- a/internal/runutil/tls.go +++ b/internal/app/tls.go @@ -1,4 +1,4 @@ -package runutil +package app import ( "crypto/tls" diff --git a/main.go b/main.go index a9b33d21c..69b326a32 100644 --- a/main.go +++ b/main.go @@ -14,9 +14,9 @@ package main import ( + "github.com/centrifugal/centrifugo/v5/internal/app" "github.com/centrifugal/centrifugo/v5/internal/cli" "github.com/centrifugal/centrifugo/v5/internal/config" - "github.com/centrifugal/centrifugo/v5/internal/runutil" "github.com/spf13/cobra" ) @@ -30,7 +30,7 @@ func main() { Short: "Centrifugo", Long: "Centrifugo – scalable real-time messaging server in language-agnostic way", Run: func(cmd *cobra.Command, args []string) { - runutil.Run(cmd, configFile) + app.Run(cmd, configFile) }, } rootCmd.Flags().StringVarP(&configFile, "config", "c", "config.json", "path to config file")