Skip to content

Commit

Permalink
Refactor package name
Browse files Browse the repository at this point in the history
- refactor: replace 5GSEC/sentryflow  to 5GSEC/SentryFlow
  • Loading branch information
isu-kim committed Feb 27, 2024
1 parent eb996cf commit 53e5ff0
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion sentryflow/collector/collectorHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package collector
import (
"errors"
"fmt"
cfg "github.com/5GSEC/sentryflow/config"
cfg "github.com/5GSEC/SentryFlow/config"
"google.golang.org/grpc"
"log"
"net"
Expand Down
2 changes: 1 addition & 1 deletion sentryflow/collector/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package collector

import (
"context"
"github.com/5GSEC/sentryflow/core"
"github.com/5GSEC/SentryFlow/core"
otelLogs "go.opentelemetry.io/proto/otlp/collector/logs/v1"
"google.golang.org/grpc"
)
Expand Down
4 changes: 2 additions & 2 deletions sentryflow/core/dbHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package core

import (
"database/sql"
cfg "github.com/5GSEC/sentryflow/config"
"github.com/5GSEC/sentryflow/types"
cfg "github.com/5GSEC/SentryFlow/config"
"github.com/5GSEC/SentryFlow/types"
"log"
"os"
"path/filepath"
Expand Down
4 changes: 2 additions & 2 deletions sentryflow/core/k8sHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package core

import (
"context"
"github.com/5GSEC/sentryflow/config"
"github.com/5GSEC/sentryflow/types"
"github.com/5GSEC/SentryFlow/config"
"github.com/5GSEC/SentryFlow/types"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
8 changes: 4 additions & 4 deletions sentryflow/core/logHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
package core

import (
"github.com/5GSEC/sentryflow/exporter"
"github.com/5GSEC/sentryflow/metrics"
"github.com/5GSEC/sentryflow/protobuf"
"github.com/5GSEC/sentryflow/types"
"github.com/5GSEC/SentryFlow/exporter"
"github.com/5GSEC/SentryFlow/metrics"
"github.com/5GSEC/SentryFlow/protobuf"
"github.com/5GSEC/SentryFlow/types"
"log"
"strconv"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion sentryflow/core/otelHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"errors"
"fmt"
cfg "github.com/5GSEC/sentryflow/config"
cfg "github.com/5GSEC/SentryFlow/config"
otelLogs "go.opentelemetry.io/proto/otlp/collector/logs/v1"
"google.golang.org/grpc"
"log"
Expand Down
6 changes: 3 additions & 3 deletions sentryflow/core/sentryflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package core

import (
cfg "github.com/5GSEC/sentryflow/config"
"github.com/5GSEC/sentryflow/exporter"
"github.com/5GSEC/sentryflow/metrics"
cfg "github.com/5GSEC/SentryFlow/config"
"github.com/5GSEC/SentryFlow/exporter"
"github.com/5GSEC/SentryFlow/metrics"
"log"
"sync"
)
Expand Down
4 changes: 2 additions & 2 deletions sentryflow/exporter/exporterHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package exporter
import (
"errors"
"fmt"
cfg "github.com/5GSEC/sentryflow/config"
"github.com/5GSEC/sentryflow/protobuf"
cfg "github.com/5GSEC/SentryFlow/config"
"github.com/5GSEC/SentryFlow/protobuf"
"net"
"sync"
"time"
Expand Down
4 changes: 2 additions & 2 deletions sentryflow/exporter/exporterServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package exporter

import (
"context"
metricAPI "github.com/5GSEC/sentryflow/metrics/api"
"github.com/5GSEC/sentryflow/protobuf"
metricAPI "github.com/5GSEC/SentryFlow/metrics/api"
"github.com/5GSEC/SentryFlow/protobuf"
"log"
)

Expand Down
6 changes: 3 additions & 3 deletions sentryflow/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/5GSEC/sentryflow
module github.com/5GSEC/SentryFlow

go 1.19

replace github.com/5GSEC/sentryflow/protobuf => ../protobuf
replace github.com/5GSEC/SentryFlow/protobuf => ../protobuf

require (
github.com/5GSEC/sentryflow/protobuf v0.0.0-00010101000000-000000000000
github.com/5GSEC/SentryFlow/protobuf v0.0.0-00010101000000-000000000000
github.com/emicklei/go-restful/v3 v3.11.0
github.com/mattn/go-sqlite3 v1.14.22
github.com/spf13/viper v1.18.2
Expand Down
4 changes: 2 additions & 2 deletions sentryflow/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package main

import (
"github.com/5GSEC/sentryflow/collector"
"github.com/5GSEC/sentryflow/core"
"github.com/5GSEC/SentryFlow/collector"
"github.com/5GSEC/SentryFlow/core"
_ "google.golang.org/grpc/encoding/gzip" // If not set, encoding problem occurs https://stackoverflow.com/questions/74062727
"log"
)
Expand Down
4 changes: 2 additions & 2 deletions sentryflow/metrics/metricHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package metrics

import (
"github.com/5GSEC/sentryflow/metrics/api"
"github.com/5GSEC/sentryflow/protobuf"
"github.com/5GSEC/SentryFlow/metrics/api"
"github.com/5GSEC/SentryFlow/protobuf"
"sync"
)

Expand Down

0 comments on commit 53e5ff0

Please sign in to comment.