Skip to content

Commit

Permalink
chore: move internal/log to pkg/log
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpr committed Dec 29, 2023
1 parent b44f908 commit 7cd5ebc
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"log/slog"

"github.com/ucpr/mongo-streamer/internal/log"
"github.com/ucpr/mongo-streamer/internal/pubsub"
"github.com/ucpr/mongo-streamer/pkg/log"
)

type EventHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
"time"

"github.com/ucpr/mongo-streamer/internal/log"
"github.com/ucpr/mongo-streamer/pkg/log"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/ucpr/mongo-streamer/internal/config"
"github.com/ucpr/mongo-streamer/internal/log"
"github.com/ucpr/mongo-streamer/internal/mongo"
"github.com/ucpr/mongo-streamer/internal/persistent"
"github.com/ucpr/mongo-streamer/pkg/log"
)

type Streamer struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/http/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package http
import (
"net/http"

"github.com/ucpr/mongo-streamer/internal/log"
"github.com/ucpr/mongo-streamer/pkg/log"
)

func health(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion internal/mongo/change_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"

"github.com/ucpr/mongo-streamer/internal/log"
mmetric "github.com/ucpr/mongo-streamer/internal/metric/mongo"
"github.com/ucpr/mongo-streamer/internal/persistent"
"github.com/ucpr/mongo-streamer/pkg/log"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion internal/persistent/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log/slog"

"github.com/ucpr/mongo-streamer/internal/log"
"github.com/ucpr/mongo-streamer/pkg/log"
)

// Log is a writer that writes to the log.
Expand Down
2 changes: 1 addition & 1 deletion internal/persistent/persistent.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/ucpr/mongo-streamer/internal/log"
"github.com/ucpr/mongo-streamer/pkg/log"
)

const (
Expand Down
File renamed without changes.

0 comments on commit 7cd5ebc

Please sign in to comment.