Skip to content

Commit

Permalink
Rename grps service
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobadjio committed Oct 12, 2024
1 parent 9ef57f8 commit 8c1724a
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 95 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ clean: ## Delete all containers

protoc-build: ## Generate pb.go files
#protoc --proto_path=api/v1/pb/api --go_out=api/v1/pb/api --go_opt=paths=source_relative --go-grpc_out=require_unimplemented_servers=false:api/v1/pb/api --go-grpc_opt=paths=source_relative apisvc.proto
protoc --proto_path=api/v1/pb/api --go_out=api/v1/pb/api --go_opt=paths=source_relative --go-grpc_out=api/v1/pb/api --go-grpc_opt=paths=source_relative apisvc.proto
protoc --proto_path=api/v1/pb/apisvc --go_out=api/v1/pb/apisvc --go_opt=paths=source_relative --go-grpc_out=api/v1/pb/apisvc --go-grpc_opt=paths=source_relative apisvc.proto
176 changes: 90 additions & 86 deletions api/v1/pb/api/apisvc.pb.go → api/v1/pb/apisvc/apisvc.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions api/v1/pb/api/apisvc.proto → api/v1/pb/apisvc/apisvc.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
syntax = 'proto3';

package apisvc;

option go_package = "./apisvc";

service Api {
Expand Down

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

2 changes: 1 addition & 1 deletion cmd/tgtime-api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"
kitgrpc "github.com/go-kit/kit/transport/grpc"
pb "github.com/robertobadjio/tgtime-api/api/v1/pb/api"
pb "github.com/robertobadjio/tgtime-api/api/v1/pb/apisvc"
"github.com/robertobadjio/tgtime-api/internal/config"
"github.com/robertobadjio/tgtime-api/internal/db"
departmentAdapter "github.com/robertobadjio/tgtime-api/internal/model/department/adapter"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/transport/gprc_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package transport
import (
"context"
"errors"
"github.com/robertobadjio/tgtime-api/api/v1/pb/api"
"github.com/robertobadjio/tgtime-api/api/v1/pb/apisvc"
"github.com/robertobadjio/tgtime-api/pkg/api/endpoints"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/transport/grps.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package transport

import (
grpctransport "github.com/go-kit/kit/transport/grpc"
"github.com/robertobadjio/tgtime-api/api/v1/pb/api"
"github.com/robertobadjio/tgtime-api/api/v1/pb/apisvc"
"github.com/robertobadjio/tgtime-api/pkg/api/endpoints"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/transport/grps_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package transport
import (
"context"
"errors"
"github.com/robertobadjio/tgtime-api/api/v1/pb/api"
"github.com/robertobadjio/tgtime-api/api/v1/pb/apisvc"
"github.com/robertobadjio/tgtime-api/pkg/api/endpoints"
)

Expand Down

0 comments on commit 8c1724a

Please sign in to comment.