Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
abyssparanoia committed Oct 6, 2022
1 parent 13727ea commit c276c0f
Show file tree
Hide file tree
Showing 69 changed files with 167 additions and 167 deletions.
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb
default: github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb
except:
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
Expand Down
2 changes: 1 addition & 1 deletion cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/cmd"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion docker/development.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.19-alpine AS builder

WORKDIR /go/src/github.com/playground-live/moala-meet-and-greet-back/
WORKDIR /go/src/github.com/abyssparanoia/rapid-go/

ENV CGO_ENABLED=0

Expand Down
4 changes: 2 additions & 2 deletions docker/production.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.19-alpine AS builder

WORKDIR /go/src/github.com/playground-live/moala-meet-and-greet-back/
WORKDIR /go/src/github.com/abyssparanoia/rapid-go/

ENV CGO_ENABLED=0

Expand All @@ -14,6 +14,6 @@ FROM alpine AS server
RUN apk add ca-certificates
COPY --from=builder /go/bin/app /bin/app

WORKDIR /go/src/github.com/playground-live/moala-meet-and-greet-back/
WORKDIR /go/src/github.com/abyssparanoia/rapid-go/

EXPOSE 80
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/playground-live/moala-meet-and-greet-back
module github.com/abyssparanoia/rapid-go

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions internal/domain/model/factory/factory.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package factory

import (
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/pkg/now"
"github.com/bxcodec/faker"
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/now"
)

func NewFactory() struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/domain/model/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model
import (
"time"

"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/ulid"
"github.com/abyssparanoia/rapid-go/internal/pkg/ulid"
"github.com/volatiletech/null/v8"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/domain/model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model
import (
"time"

"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/ulid"
"github.com/abyssparanoia/rapid-go/internal/pkg/ulid"
)

type User struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/domain/repository/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package repository
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/volatiletech/null/v8"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/domain/repository/mock/tenant.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/domain/repository/mock/transactable_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock_repository
import (
context "context"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/repository"
"github.com/abyssparanoia/rapid-go/internal/domain/repository"
)

type mockTx struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/domain/repository/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package repository
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/volatiletech/null/v8"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/domain/repository/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package repository
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/volatiletech/null/v8"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package http_server_cmd

import (
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/http"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/http"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/infrastructure/cmd/internal/task_cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package task_cmd

import (
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/cmd/internal/task_cmd/create_root_user_cmd"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/cmd/internal/task_cmd/create_root_user_cmd"
"github.com/spf13/cobra"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package create_root_user_cmd
import (
"context"

"github.com/abyssparanoia/rapid-go/internal/infrastructure/dependency"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/environment"
"github.com/abyssparanoia/rapid-go/internal/pkg/logger"
"github.com/caarlos0/env/v6"
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/dependency"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/environment"
"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/logger"
"github.com/spf13/cobra"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"errors"

"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/now"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase/input"
"github.com/abyssparanoia/rapid-go/internal/pkg/now"
"github.com/abyssparanoia/rapid-go/internal/usecase"
"github.com/abyssparanoia/rapid-go/internal/usecase/input"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/infrastructure/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/cmd/internal/http_server_cmd"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/cmd/internal/task_cmd"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/cmd/internal/http_server_cmd"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/cmd/internal/task_cmd"
"github.com/spf13/cobra"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package marshaller

import (
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/internal/dbmodel"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/internal/dbmodel"
)

func OutputTenantToModel(e *dbmodel.Tenant) *model.Tenant {
Expand Down
4 changes: 2 additions & 2 deletions internal/infrastructure/database/internal/marshaller/user.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package marshaller

import (
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/internal/dbmodel"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/internal/dbmodel"
)

func OutputUserToModel(e *dbmodel.User) *model.User {
Expand Down
12 changes: 6 additions & 6 deletions internal/infrastructure/database/repository/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"database/sql"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/repository"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/internal/dbmodel"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/internal/marshaller"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/transactable"
"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/errors"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/repository"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/internal/dbmodel"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/internal/marshaller"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/transactable"
"github.com/abyssparanoia/rapid-go/internal/pkg/errors"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
)
Expand Down
12 changes: 6 additions & 6 deletions internal/infrastructure/database/repository/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"database/sql"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/repository"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/internal/dbmodel"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/internal/marshaller"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/transactable"
"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/errors"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/repository"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/internal/dbmodel"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/internal/marshaller"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/transactable"
"github.com/abyssparanoia/rapid-go/internal/pkg/errors"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/infrastructure/database/transactable/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"database/sql"

"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/errors"
"github.com/abyssparanoia/rapid-go/internal/pkg/errors"
"github.com/volatiletech/sqlboiler/v4/boil"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package transactable
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/domain/repository"
"github.com/abyssparanoia/rapid-go/internal/domain/repository"
)

type transactable struct{}
Expand Down
14 changes: 7 additions & 7 deletions internal/infrastructure/dependency/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"context"

"firebase.google.com/go/auth"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/repository"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/database/transactable"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/environment"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/firebase"
firebase_repository "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/firebase/repository"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/repository"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/database/transactable"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/environment"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/firebase"
firebase_repository "github.com/abyssparanoia/rapid-go/internal/infrastructure/firebase/repository"
"github.com/abyssparanoia/rapid-go/internal/usecase"
)

type Dependency struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package marshaller

import (
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
)

func ClaimsToModel(authUID string, customClaim map[string]interface{}) *model.Claims {
Expand Down
8 changes: 4 additions & 4 deletions internal/infrastructure/firebase/repository/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"

"firebase.google.com/go/auth"
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/model"
"github.com/playground-live/moala-meet-and-greet-back/internal/domain/repository"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/firebase/internal/marshaller"
"github.com/playground-live/moala-meet-and-greet-back/internal/pkg/errors"
"github.com/abyssparanoia/rapid-go/internal/domain/model"
"github.com/abyssparanoia/rapid-go/internal/domain/repository"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/firebase/internal/marshaller"
"github.com/abyssparanoia/rapid-go/internal/pkg/errors"
)

type authentication struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package admin

import (
admin_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/admin_api/v1"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase"
admin_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/admin_api/v1"
"github.com/abyssparanoia/rapid-go/internal/usecase"
)

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

"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/interceptor/request_interceptor"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/marshaller"
admin_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/admin_api/v1"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase/input"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/interceptor/request_interceptor"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/marshaller"
admin_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/admin_api/v1"
"github.com/abyssparanoia/rapid-go/internal/usecase/input"
)

func (h *AdminHandler) GetTenant(ctx context.Context, req *admin_apiv1.GetTenantRequest) (*admin_apiv1.GetTenantResponse, error) {
Expand Down
10 changes: 5 additions & 5 deletions internal/infrastructure/grpc/internal/handler/admin/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package admin
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/interceptor/request_interceptor"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/interceptor/session_interceptor"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/marshaller"
admin_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/admin_api/v1"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase/input"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/interceptor/request_interceptor"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/interceptor/session_interceptor"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/marshaller"
admin_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/admin_api/v1"
"github.com/abyssparanoia/rapid-go/internal/usecase/input"
)

func (h *AdminHandler) CreateUser(ctx context.Context, req *admin_apiv1.CreateUserRequest) (*admin_apiv1.CreateUserResponse, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"firebase.google.com/go/auth"
debug_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/debug_api/v1"
debug_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/debug_api/v1"
)

type DebugHander struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package public
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/interceptor/session_interceptor"
"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/marshaller"
public_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/public_api/v1"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase/input"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/interceptor/session_interceptor"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/marshaller"
public_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/public_api/v1"
"github.com/abyssparanoia/rapid-go/internal/usecase/input"
)

func (h *PublicHandler) SignIn(ctx context.Context, req *public_apiv1.SignInRequest) (*public_apiv1.SignInResponse, error) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package public

import (
public_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/public_api/v1"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase"
public_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/public_api/v1"
"github.com/abyssparanoia/rapid-go/internal/usecase"
)

type PublicHandler struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package public
import (
"context"

"github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/internal/marshaller"
public_apiv1 "github.com/playground-live/moala-meet-and-greet-back/internal/infrastructure/grpc/pb/mmg/public_api/v1"
"github.com/playground-live/moala-meet-and-greet-back/internal/usecase/input"
"github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/internal/marshaller"
public_apiv1 "github.com/abyssparanoia/rapid-go/internal/infrastructure/grpc/pb/mmg/public_api/v1"
"github.com/abyssparanoia/rapid-go/internal/usecase/input"
)

func (h *PublicHandler) GetTenant(ctx context.Context, req *public_apiv1.GetTenantRequest) (*public_apiv1.GetTenantResponse, error) {
Expand Down
Loading

0 comments on commit c276c0f

Please sign in to comment.