Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
refactor: package changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ansh-devs committed Jun 26, 2024
1 parent 719cb11 commit 294e911
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: TotalityCorp-Assessment
name: UserDataLink-Build
on: [push]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: TotalityCorp-Assessment
name: UserDataLink-Test
on: [push]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## **User Service with Search Functionality using gRPC as transportation layer**

[](https://github.com/ansh-devs/tc-assessment/actions/workflows/go-test.yml/badge.svg)
[](https://github.com/ansh-devs/userdatalink/actions/workflows/go-test.yml/badge.svg)

#### Here is the documentation of the TotalityCorp's Assignment

Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os/signal"
"syscall"

"github.com/ansh-devs/tc-assessment/internal/gapi"
"github.com/ansh-devs/userdatalink/internal/gapi"
"github.com/sirupsen/logrus"
)

Expand Down
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/ansh-devs/tc-assessment
module github.com/ansh-devs/userdatalink

go 1.22.1

Expand Down
2 changes: 1 addition & 1 deletion internal/database/repository.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package database

import "github.com/ansh-devs/tc-assessment/internal/entity"
import "github.com/ansh-devs/userdatalink/internal/entity"

// UserRepository represents a respository that interacts with a database.
type UserRepository interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/database/repository_implementation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/ansh-devs/tc-assessment/internal/entity"
"github.com/ansh-devs/userdatalink/internal/entity"
"github.com/fatih/structs"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/get_user_by_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package gapi
import (
"context"

"github.com/ansh-devs/tc-assessment/internal/validation"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/validation"
"github.com/ansh-devs/userdatalink/protos"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/get_user_by_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"testing"

"github.com/ansh-devs/tc-assessment/internal/database"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/database"
"github.com/ansh-devs/userdatalink/protos"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/get_users_by_criteria.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package gapi
import (
"context"

"github.com/ansh-devs/tc-assessment/internal/validation"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/validation"
"github.com/ansh-devs/userdatalink/protos"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/get_users_by_criteria_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"testing"

"github.com/ansh-devs/tc-assessment/internal/database"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/database"
"github.com/ansh-devs/userdatalink/protos"
"google.golang.org/grpc"
"google.golang.org/grpc/test/bufconn"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/get_users_list_by_ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"errors"

"github.com/ansh-devs/tc-assessment/internal/validation"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/validation"
"github.com/ansh-devs/userdatalink/protos"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/get_users_list_by_ids_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"testing"

"github.com/ansh-devs/tc-assessment/internal/database"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/database"
"github.com/ansh-devs/userdatalink/protos"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
4 changes: 2 additions & 2 deletions internal/gapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net"
"os"

"github.com/ansh-devs/tc-assessment/internal/database"
"github.com/ansh-devs/tc-assessment/protos"
"github.com/ansh-devs/userdatalink/internal/database"
"github.com/ansh-devs/userdatalink/protos"
_ "github.com/joho/godotenv/autoload"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
Expand Down

0 comments on commit 294e911

Please sign in to comment.