-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from izumin5210/izumin5210/grpc-gateway-1.5.0
grpc-gateway v1.5.0
- Loading branch information
Showing
21 changed files
with
200 additions
and
91 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
.../module/generator/.snapshots/TestProjectGenerator_GenerateProject-with_UseHEAD-.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.so | ||
/vendor | ||
/bin | ||
/tmp | ||
|
14 changes: 14 additions & 0 deletions
14
.../module/generator/.snapshots/TestProjectGenerator_GenerateProject-with_UseHEAD-Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
required = [ | ||
"github.com/golang/protobuf/protoc-gen-go", | ||
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway", | ||
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger", | ||
] | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/izumin5210/grapi" | ||
|
||
[[override]] | ||
name = "github.com/grpc-ecosystem/grpc-gateway" | ||
version = "^1.5.0" | ||
|
17 changes: 17 additions & 0 deletions
17
.../module/generator/.snapshots/TestProjectGenerator_GenerateProject-with_UseHEAD-app-run.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package app | ||
|
||
import ( | ||
"github.com/izumin5210/grapi/pkg/grapiserver" | ||
) | ||
|
||
// Run starts the grapiserver. | ||
func Run() error { | ||
s := grapiserver.New( | ||
grapiserver.WithDefaultLogger(), | ||
grapiserver.WithServers( | ||
// TODO | ||
), | ||
) | ||
return s.Serve() | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
.../generator/.snapshots/TestProjectGenerator_GenerateProject-with_UseHEAD-cmd-server-run.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
|
||
"google.golang.org/grpc/grpclog" | ||
|
||
"testcompany/testapp/app" | ||
) | ||
|
||
func main() { | ||
os.Exit(run()) | ||
} | ||
|
||
func run() int { | ||
err := app.Run() | ||
if err != nil { | ||
grpclog.Errorf("server was shutdown with errors: %v", err) | ||
return 1 | ||
} | ||
return 0 | ||
} | ||
|
29 changes: 29 additions & 0 deletions
29
.../module/generator/.snapshots/TestProjectGenerator_GenerateProject-with_UseHEAD-grapi.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package = "testcompany.testapp" | ||
|
||
[grapi] | ||
server_dir = "./app/server" | ||
|
||
[protoc] | ||
protos_dir = "./api/protos" | ||
out_dir = "./api" | ||
import_dirs = [ | ||
"./api/protos", | ||
"./vendor/github.com/grpc-ecosystem/grpc-gateway", | ||
"./vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis", | ||
] | ||
|
||
[[protoc.plugins]] | ||
path = "./vendor/github.com/golang/protobuf/protoc-gen-go" | ||
name = "go" | ||
args = { plugins = "grpc", paths = "source_relative" } | ||
|
||
[[protoc.plugins]] | ||
path = "./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" | ||
name = "grpc-gateway" | ||
args = { logtostderr = true, paths = "source_relative" } | ||
|
||
[[protoc.plugins]] | ||
path = "./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger" | ||
name = "swagger" | ||
args = { logtostderr = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.