update all and fix tests

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-08-17 01:11:23 +03:00
parent 8c4c9f20b8
commit 6b666fe1a4
26 changed files with 404 additions and 345 deletions

View File

@@ -1,3 +1,4 @@
package grpc
//go:generate go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
//go:generate protoc -I./proto -I$GOPATH/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/third_party/googleapis -I. --go-grpc_out=paths=source_relative:./proto --go_out=paths=source_relative:./proto --go-micro_out=components=micro|rpc,debug=true,standalone=true,paths=source_relative:./gproto proto/test.proto

View File

@@ -14,15 +14,7 @@ import (
var (
TestName = "Test"
TestEndpoints = []api.Endpoint{
api.Endpoint{
Name: "Test.Call",
Path: []string{"/api/v0/test/call/TEST"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
}
TestEndpoints = []api.Endpoint{}
)
func NewTestEndpoints() []api.Endpoint {

View File

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.6
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: test.proto
package helloworld