Skip to content

Commit

Permalink
runutil -> app
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Nov 13, 2024
1 parent c435d35 commit df95c5b
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion internal/runutil/engine.go → internal/app/engine.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/graphite.go → internal/app/graphite.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"net"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/grpc.go → internal/app/grpc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"crypto/tls"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/log.go → internal/app/log.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/mux.go → internal/app/mux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"crypto/tls"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/node.go → internal/app/node.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/origin.go → internal/app/origin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/proxy.go → internal/app/proxy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/run.go → internal/app/run.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion internal/runutil/tls.go → internal/app/tls.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runutil
package app

import (
"crypto/tls"
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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")
Expand Down

0 comments on commit df95c5b

Please sign in to comment.