Loading apigrpc/apigrpc.pb.go +4 −0 Original line number Diff line number Diff line Loading @@ -18,7 +18,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 <<<<<<< HEAD // protoc v3.14.0 ======= // protoc v3.11.4 >>>>>>> ac4f7a0d (Reimplement Nakama Console with Angular 10.) // source: apigrpc.proto package apigrpc Loading apigrpc/apigrpc.swagger.json +0 −94 Original line number Diff line number Diff line Loading @@ -1379,28 +1379,6 @@ } } }, "parameters": [ { "name": "ids", "description": "The account id of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } }, { "name": "usernames", "description": "The account username of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ "Nakama" ] Loading @@ -1424,28 +1402,6 @@ } } }, "parameters": [ { "name": "ids", "description": "The account id of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } }, { "name": "usernames", "description": "The account username of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ "Nakama" ] Loading Loading @@ -1665,16 +1621,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to add.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1707,16 +1653,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to ban.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1749,16 +1685,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to demote.", "in": "query", "required": true, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1823,16 +1749,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to kick.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1897,16 +1813,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to promote.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading console/console.pb.go +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // protoc v3.11.4 // source: console.proto package console Loading console/protoc-gen-angular/README.md 0 → 100644 +32 −0 Original line number Diff line number Diff line Angular service code gen ======= #### An utility tool to generate an angular REST client from the protobuf spec service definitions used by grpc-gateway. ### Usage #### Setup Ensure that you have your `$GOPATH` set as the protoc toolchain seems to be unable to resolve imports that are resolved through modules. You must provide the imports that are specified inside the input proto file to the protoc binary using the `-I` options. You might also have to set your `$GOBIN`. Install the `protoc-gen-angular` binary by running: ```shell go build && go install ``` #### Options Options are passed to the `protoc` flag in the following way: `--angular_out=service_name=foo,filename=bar.ts:.`. * `filename`: The filename for the generated output. * `service_name`: The name of the generated TypeScript service class. #### Generate the Angular service ##### Example ```shell protoc -I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway -I../vendor --angular_out=filename=console.service.ts,service_name=ConsoleService:. <input file.proto> ``` The output file is: `console.service.ts`. ### Limitations The code generator has __only__ been checked against a limited set of grpc-gateway service definitions and might have trouble handling nested enumerables inside message definitions YMMV. console/protoc-gen-angular/go.mod 0 → 100644 +12 −0 Original line number Diff line number Diff line module protoc-gen-angular go 1.13 require ( github.com/golang/protobuf v1.3.2 github.com/grpc-ecosystem/grpc-gateway v1.12.1 github.com/kr/pretty v0.1.0 // indirect google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb // indirect gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v2 v2.2.7 // indirect ) Loading
apigrpc/apigrpc.pb.go +4 −0 Original line number Diff line number Diff line Loading @@ -18,7 +18,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 <<<<<<< HEAD // protoc v3.14.0 ======= // protoc v3.11.4 >>>>>>> ac4f7a0d (Reimplement Nakama Console with Angular 10.) // source: apigrpc.proto package apigrpc Loading
apigrpc/apigrpc.swagger.json +0 −94 Original line number Diff line number Diff line Loading @@ -1379,28 +1379,6 @@ } } }, "parameters": [ { "name": "ids", "description": "The account id of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } }, { "name": "usernames", "description": "The account username of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ "Nakama" ] Loading @@ -1424,28 +1402,6 @@ } } }, "parameters": [ { "name": "ids", "description": "The account id of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } }, { "name": "usernames", "description": "The account username of a user.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ "Nakama" ] Loading Loading @@ -1665,16 +1621,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to add.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1707,16 +1653,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to ban.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1749,16 +1685,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to demote.", "in": "query", "required": true, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1823,16 +1749,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to kick.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading Loading @@ -1897,16 +1813,6 @@ "in": "path", "required": true, "type": "string" }, { "name": "user_ids", "description": "The users to promote.", "in": "query", "required": false, "type": "array", "items": { "type": "string" } } ], "tags": [ Loading
console/console.pb.go +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // protoc v3.11.4 // source: console.proto package console Loading
console/protoc-gen-angular/README.md 0 → 100644 +32 −0 Original line number Diff line number Diff line Angular service code gen ======= #### An utility tool to generate an angular REST client from the protobuf spec service definitions used by grpc-gateway. ### Usage #### Setup Ensure that you have your `$GOPATH` set as the protoc toolchain seems to be unable to resolve imports that are resolved through modules. You must provide the imports that are specified inside the input proto file to the protoc binary using the `-I` options. You might also have to set your `$GOBIN`. Install the `protoc-gen-angular` binary by running: ```shell go build && go install ``` #### Options Options are passed to the `protoc` flag in the following way: `--angular_out=service_name=foo,filename=bar.ts:.`. * `filename`: The filename for the generated output. * `service_name`: The name of the generated TypeScript service class. #### Generate the Angular service ##### Example ```shell protoc -I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway -I../vendor --angular_out=filename=console.service.ts,service_name=ConsoleService:. <input file.proto> ``` The output file is: `console.service.ts`. ### Limitations The code generator has __only__ been checked against a limited set of grpc-gateway service definitions and might have trouble handling nested enumerables inside message definitions YMMV.
console/protoc-gen-angular/go.mod 0 → 100644 +12 −0 Original line number Diff line number Diff line module protoc-gen-angular go 1.13 require ( github.com/golang/protobuf v1.3.2 github.com/grpc-ecosystem/grpc-gateway v1.12.1 github.com/kr/pretty v0.1.0 // indirect google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb // indirect gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v2 v2.2.7 // indirect )