flow: create tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
36
flow/proto/test_micro.pb.go
Normal file
36
flow/proto/test_micro.pb.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
||||
// protoc-gen-go-micro version: v3.4.1
|
||||
// source: test.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
api "github.com/unistack-org/micro/v3/api"
|
||||
client "github.com/unistack-org/micro/v3/client"
|
||||
)
|
||||
|
||||
var (
|
||||
TestServiceName = "TestService"
|
||||
|
||||
TestServiceEndpoints = []api.Endpoint{
|
||||
api.Endpoint{
|
||||
Name: "TestService.LookupUser",
|
||||
Path: []string{"/v1/user/lookup/{name}"},
|
||||
Method: []string{"GET"},
|
||||
Handler: "rpc",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
func NewTestServiceEndpoints() []api.Endpoint {
|
||||
return TestServiceEndpoints
|
||||
}
|
||||
|
||||
type TestServiceClient interface {
|
||||
LookupUser(ctx context.Context, req *LookupUserReq, opts ...client.CallOption) (*LookupUserRsp, error)
|
||||
}
|
||||
|
||||
type TestServiceServer interface {
|
||||
LookupUser(ctx context.Context, req *LookupUserReq, rsp *LookupUserRsp) error
|
||||
}
|
Reference in New Issue
Block a user