Skip to content

Commit

Permalink
chore: change the package name
Browse files Browse the repository at this point in the history
  • Loading branch information
firminochangani committed Jun 8, 2024
1 parent cd1162f commit bc523b1
Show file tree
Hide file tree
Showing 101 changed files with 252 additions and 252 deletions.
4 changes: 2 additions & 2 deletions cmd/dogfooding/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"github.com/labstack/echo/v4"

"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/flowck/dobermann/backend/tests/client"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
"github.com/dobermanndotdev/dobermann/tests/client"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/endpoint_simulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"

"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
)

var failureStatusCode = []int{
Expand Down
36 changes: 18 additions & 18 deletions cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ import (
"github.com/kelseyhightower/envconfig"
_ "github.com/lib/pq"

"github.com/flowck/dobermann/backend/internal/adapters/endpoint_checkers"
"github.com/flowck/dobermann/backend/internal/adapters/events"
"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/internal/adapters/resend"
"github.com/flowck/dobermann/backend/internal/adapters/transaction"
"github.com/flowck/dobermann/backend/internal/app"
"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/common/auth"
"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/flowck/dobermann/backend/internal/common/messaging"
"github.com/flowck/dobermann/backend/internal/common/observability"
"github.com/flowck/dobermann/backend/internal/common/postgres"
"github.com/flowck/dobermann/backend/internal/common/watermill_logger"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
amqpport "github.com/flowck/dobermann/backend/internal/ports/amqp"
httpport "github.com/flowck/dobermann/backend/internal/ports/http"
"github.com/dobermanndotdev/dobermann/internal/adapters/endpoint_checkers"
"github.com/dobermanndotdev/dobermann/internal/adapters/events"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/internal/adapters/resend"
"github.com/dobermanndotdev/dobermann/internal/adapters/transaction"
"github.com/dobermanndotdev/dobermann/internal/app"
"github.com/dobermanndotdev/dobermann/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/common/auth"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/common/messaging"
"github.com/dobermanndotdev/dobermann/internal/common/observability"
"github.com/dobermanndotdev/dobermann/internal/common/postgres"
"github.com/dobermanndotdev/dobermann/internal/common/watermill_logger"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
amqpport "github.com/dobermanndotdev/dobermann/internal/ports/amqp"
httpport "github.com/dobermanndotdev/dobermann/internal/ports/http"
)

var Version = "development"
Expand Down
22 changes: 11 additions & 11 deletions cmd/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import (
"github.com/kelseyhightower/envconfig"
_ "github.com/lib/pq"

"github.com/flowck/dobermann/backend/internal/adapters/endpoint_checkers"
"github.com/flowck/dobermann/backend/internal/adapters/events"
"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/internal/adapters/transaction"
"github.com/flowck/dobermann/backend/internal/app"
"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/flowck/dobermann/backend/internal/common/messaging"
"github.com/flowck/dobermann/backend/internal/common/observability"
"github.com/flowck/dobermann/backend/internal/common/postgres"
"github.com/flowck/dobermann/backend/internal/ports/cron"
"github.com/dobermanndotdev/dobermann/internal/adapters/endpoint_checkers"
"github.com/dobermanndotdev/dobermann/internal/adapters/events"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/internal/adapters/transaction"
"github.com/dobermanndotdev/dobermann/internal/app"
"github.com/dobermanndotdev/dobermann/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/common/messaging"
"github.com/dobermanndotdev/dobermann/internal/common/observability"
"github.com/dobermanndotdev/dobermann/internal/common/postgres"
"github.com/dobermanndotdev/dobermann/internal/ports/cron"
)

var Version = "development"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/flowck/dobermann/backend
module github.com/dobermanndotdev/dobermann

go 1.21
go 1.22.0

require (
github.com/ThreeDotsLabs/watermill v1.3.5
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/endpoint_checkers/http_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"net/http"
"time"

"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/flowck/dobermann/backend/internal/common/ptr"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/common/ptr"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

var userAgents = []string{
Expand Down
6 changes: 3 additions & 3 deletions internal/adapters/endpoint_checkers/http_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/flowck/dobermann/backend/internal/adapters/endpoint_checkers"
"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/adapters/endpoint_checkers"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

func TestHttpChecker(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/adapters/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/ThreeDotsLabs/watermill/message"

"github.com/flowck/dobermann/backend/internal/common/observability"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/common/observability"
"github.com/dobermanndotdev/dobermann/internal/domain"
)

type Event interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/adapters/events/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/ThreeDotsLabs/watermill/message"

"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/app/command"
)

type Publisher struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/adapters/events/publisher_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/app/command"
)

type PublisherMock struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/adapters/psql/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/volatiletech/sqlboiler/v4/boil"

"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
)

func NewAccountRepository(db boil.ContextExecutor) AccountRepository {
Expand Down
4 changes: 2 additions & 2 deletions internal/adapters/psql/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
_ "github.com/lib/pq"
"github.com/stretchr/testify/require"

"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/tests"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/tests"
)

func TestPsqlRepository_Insert(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/psql/incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"

"github.com/flowck/dobermann/backend/internal/adapters/models"
"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/adapters/models"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

func NewIncidentRepository(db boil.ContextExecutor) IncidentRepository {
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/psql/incident_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/flowck/dobermann/backend/tests"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/tests"
)

func TestIncidentRepository_Lifecycle(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/adapters/psql/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

_ "github.com/lib/pq"

"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/internal/common/postgres"
"github.com/flowck/dobermann/backend/tests"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/internal/common/postgres"
"github.com/dobermanndotdev/dobermann/tests"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions internal/adapters/psql/mappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/volatiletech/null/v8"

"github.com/flowck/dobermann/backend/internal/adapters/models"
"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/adapters/models"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

func mapUserToModel(user *account.User) models.User {
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/psql/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"sync"

"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

type AccountRepositoryMock struct {
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/psql/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"

"github.com/flowck/dobermann/backend/internal/adapters/models"
"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/adapters/models"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

func NewMonitorRepository(db boil.ContextExecutor) MonitorRepository {
Expand Down
10 changes: 5 additions & 5 deletions internal/adapters/psql/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"github.com/volatiletech/null/v8"
"github.com/volatiletech/sqlboiler/v4/boil"

"github.com/flowck/dobermann/backend/internal/adapters/models"
"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/flowck/dobermann/backend/tests"
"github.com/dobermanndotdev/dobermann/internal/adapters/models"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/tests"
)

func TestMonitorRepository_Lifecycle(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/adapters/psql/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/volatiletech/sqlboiler/v4/boil"

"github.com/flowck/dobermann/backend/internal/adapters/models"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/adapters/models"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
)

func NewUserRepository(db boil.ContextExecutor) UserRepository {
Expand Down
6 changes: 3 additions & 3 deletions internal/adapters/psql/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/tests"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/tests"
)

func TestUserRepository_Lifecycle(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/adapters/resend/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

resendsdk "github.com/resendlabs/resend-go/v2"

"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

// Service This interface is needed to allow the initialisation of either the concrete struct service or a mock
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/resend/service_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package resend
import (
"context"

"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/flowck/dobermann/backend/internal/domain"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/domain"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

type serviceMock struct {
Expand Down
8 changes: 4 additions & 4 deletions internal/adapters/transaction/psql.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/ThreeDotsLabs/watermill/message"
"github.com/volatiletech/sqlboiler/v4/boil"

"github.com/flowck/dobermann/backend/internal/adapters/events"
"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/flowck/dobermann/backend/internal/common/logs"
"github.com/dobermanndotdev/dobermann/internal/adapters/events"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/common/logs"
)

type PsqlProvider struct {
Expand Down
6 changes: 3 additions & 3 deletions internal/adapters/transaction/psql_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package transaction
import (
"context"

"github.com/flowck/dobermann/backend/internal/adapters/events"
"github.com/flowck/dobermann/backend/internal/adapters/psql"
"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/adapters/events"
"github.com/dobermanndotdev/dobermann/internal/adapters/psql"
"github.com/dobermanndotdev/dobermann/internal/app/command"
)

type PsqlProviderMock struct {
Expand Down
8 changes: 4 additions & 4 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package app
import (
"context"

"github.com/flowck/dobermann/backend/internal/app/command"
"github.com/flowck/dobermann/backend/internal/app/query"
"github.com/flowck/dobermann/backend/internal/domain/account"
"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/app/command"
"github.com/dobermanndotdev/dobermann/internal/app/query"
"github.com/dobermanndotdev/dobermann/internal/domain/account"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

type QueryHandler[Q, R any] interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/app/command/bulk_check_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/flowck/dobermann/backend/internal/domain/monitor"
"github.com/dobermanndotdev/dobermann/internal/domain/monitor"
)

type BulkCheckEndpoints struct {
Expand Down
Loading

0 comments on commit bc523b1

Please sign in to comment.