Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-07-16 00:41:10 +03:00
parent 99ebab4260
commit 7bf66d519e
22 changed files with 738 additions and 86 deletions

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// protoc-gen-go-micro version: v3.4.1
// protoc-gen-go-micro version: v3.4.2
// source: test.proto
package pb
@@ -16,10 +16,30 @@ var (
TestServiceEndpoints = []api.Endpoint{
api.Endpoint{
Name: "TestService.LookupUser",
Path: []string{"/v1/user/lookup/{name}"},
Path: []string{"/v1/user/{name}"},
Method: []string{"GET"},
Handler: "rpc",
},
api.Endpoint{
Name: "TestService.UpdateUser",
Path: []string{"/v1/user/{name}"},
Method: []string{"PUT"},
Body: "*",
Handler: "rpc",
},
api.Endpoint{
Name: "TestService.DeleteUser",
Path: []string{"/v1/user/{name}"},
Method: []string{"DELETE"},
Handler: "rpc",
},
api.Endpoint{
Name: "TestService.MailUser",
Path: []string{"/v1/user/{name}/mail"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
}
)
@@ -29,8 +49,14 @@ func NewTestServiceEndpoints() []api.Endpoint {
type TestServiceClient interface {
LookupUser(ctx context.Context, req *LookupUserReq, opts ...client.CallOption) (*LookupUserRsp, error)
UpdateUser(ctx context.Context, req *UpdateUserReq, opts ...client.CallOption) (*UpdateUserRsp, error)
DeleteUser(ctx context.Context, req *DeleteUserReq, opts ...client.CallOption) (*DeleteUserRsp, error)
MailUser(ctx context.Context, req *MailUserReq, opts ...client.CallOption) (*MailUserRsp, error)
}
type TestServiceServer interface {
LookupUser(ctx context.Context, req *LookupUserReq, rsp *LookupUserRsp) error
UpdateUser(ctx context.Context, req *UpdateUserReq, rsp *UpdateUserRsp) error
DeleteUser(ctx context.Context, req *DeleteUserReq, rsp *DeleteUserRsp) error
MailUser(ctx context.Context, req *MailUserReq, rsp *MailUserRsp) error
}