Skip to content

Commit

Permalink
chore: transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Nov 21, 2024
1 parent 47a8060 commit 17d7d40
Show file tree
Hide file tree
Showing 43 changed files with 153 additions and 157 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"go.testFlags": [
"-v",
"-coverpkg=github.com/sysulq/graphql-grpc-gateway/..."
"-coverpkg=github.com/go-kod/grpc-gateway/..."
]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GraphQL gRPC gateway
# gRPC gateway

[![Build and Test](https://github.com/sysulq/graphql-grpc-gateway/actions/workflows/go.yml/badge.svg)](https://github.com/sysulq/graphql-grpc-gateway/actions/workflows/go.yml)
[![Build and Test](https://github.com/go-kod/grpc-gateway/actions/workflows/go.yml/badge.svg)](https://github.com/go-kod/grpc-gateway/actions/workflows/go.yml)
[![codecov](https://codecov.io/gh/sysulq/graphql-grpc-gateway/graph/badge.svg?token=UO18DMG15Z)](https://codecov.io/gh/sysulq/graphql-grpc-gateway)

This is a simple gateway that can be used to expose multiple gRPC services as a GraphQL server.
This is a simple gateway that can be used to expose multiple gRPC services as a GraphQL/HTTP server.

![arch](./assets//arch.excalidraw.png)

Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ tasks:

test:
cmds:
- go test -race -cover -coverprofile=coverage.out -covermode=atomic ./...
- go test -race -cover -coverprofile=coverage.out -covermode=atomic ./... -v
sources:
- "**/**.go"
generates:
Expand Down
24 changes: 12 additions & 12 deletions api/example/constructsserver/constructs.pb.go

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

2 changes: 1 addition & 1 deletion api/example/constructsserver/constructs.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package constructsserver;
option go_package = "github.com/sysulq/graphql-grpc-gateway/gateway/constructsserver/pb;constructsserver";
option go_package = "github.com/go-kod/grpc-gateway/gateway/constructsserver/pb;constructsserver";

import "google/protobuf/any.proto";
import "google/protobuf/empty.proto";
Expand Down
21 changes: 10 additions & 11 deletions api/example/helloworld/helloworld.pb.go

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

25 changes: 12 additions & 13 deletions api/example/optionsserver/options.pb.go

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

2 changes: 1 addition & 1 deletion api/example/optionsserver/options.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package optionsserver;
option go_package = "github.com/sysulq/graphql-grpc-gateway/gateway/optionsserver/pb;optionsserver";
option go_package = "github.com/go-kod/grpc-gateway/gateway/optionsserver/pb;optionsserver";

import "graphql/v1/extend.proto";

Expand Down
21 changes: 10 additions & 11 deletions api/graphql/v1/extend.pb.go

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

2 changes: 1 addition & 1 deletion api/graphql/v1/extend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package graphql.v1;

option go_package = "github.com/sysulq/graphql-grpc-gateway/api/graphql/v1;graphqlv1";
option go_package = "github.com/go-kod/grpc-gateway/api/graphql/v1;graphqlv1";

import "google/protobuf/descriptor.proto";

Expand Down
19 changes: 9 additions & 10 deletions api/test/constructs-input.pb.go

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

2 changes: 1 addition & 1 deletion api/test/constructs-input.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package constructs;
option go_package = "github.com/sysulq/graphql-grpc-gateway/example;pb";
option go_package = "github.com/go-kod/grpc-gateway/example;pb";

import "google/protobuf/any.proto";
import "google/protobuf/empty.proto";
Expand Down
20 changes: 10 additions & 10 deletions api/test/options-input.pb.go

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

2 changes: 1 addition & 1 deletion api/test/options-input.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package options;
option go_package = "github.com/sysulq/graphql-grpc-gateway/example;pb";
option go_package = "github.com/go-kod/grpc-gateway/example;pb";

import "graphql/v1/extend.proto";

Expand Down
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/sysulq/graphql-grpc-gateway/api
default: github.com/go-kod/grpc-gateway/api
except:
- buf.build/googleapis/googleapis
plugins:
Expand Down
4 changes: 2 additions & 2 deletions cmd/gateway/kod_gen.go

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

4 changes: 2 additions & 2 deletions cmd/gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"net"
"net/http"

"github.com/go-kod/grpc-gateway/internal/config"
"github.com/go-kod/grpc-gateway/internal/server"
"github.com/go-kod/kod"
"github.com/go-kod/kod/interceptor/kmetric"
"github.com/go-kod/kod/interceptor/krecovery"
"github.com/go-kod/kod/interceptor/ktrace"
"github.com/samber/lo"
"github.com/sysulq/graphql-grpc-gateway/internal/config"
"github.com/sysulq/graphql-grpc-gateway/internal/server"
)

type app struct {
Expand Down
2 changes: 1 addition & 1 deletion example/gateway/constructsserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
any "google.golang.org/protobuf/types/known/anypb"
empty "google.golang.org/protobuf/types/known/emptypb"

pb "github.com/go-kod/grpc-gateway/api/example/constructsserver"
"github.com/go-kod/kod"
"github.com/go-kod/kod-ext/registry/etcdv3"
"github.com/go-kod/kod-ext/server/kgrpc"
"github.com/samber/lo"
pb "github.com/sysulq/graphql-grpc-gateway/api/example/constructsserver"
)

type app struct {
Expand Down
2 changes: 1 addition & 1 deletion example/gateway/helloworld/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"context"

"github.com/go-kod/grpc-gateway/api/example/helloworld"
"github.com/go-kod/kod"
"github.com/go-kod/kod-ext/registry/etcdv3"
"github.com/go-kod/kod-ext/server/kgrpc"
"github.com/samber/lo"
"github.com/sysulq/graphql-grpc-gateway/api/example/helloworld"
)

type app struct {
Expand Down
Loading

0 comments on commit 17d7d40

Please sign in to comment.