2021-07-14 11:48:20 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2023-01-07 19:16:48 +03:00
|
|
|
// versions:
|
|
|
|
// - protoc-gen-go-micro v3.5.3
|
|
|
|
// - protoc v3.21.12
|
2021-07-14 11:48:20 +03:00
|
|
|
// source: test.proto
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-10-27 01:24:35 +03:00
|
|
|
api "go.unistack.org/micro/v3/api"
|
|
|
|
client "go.unistack.org/micro/v3/client"
|
2021-07-14 11:48:20 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
TestServiceName = "TestService"
|
|
|
|
|
|
|
|
TestServiceEndpoints = []api.Endpoint{
|
2021-08-20 23:03:51 +03:00
|
|
|
{
|
2021-07-14 11:48:20 +03:00
|
|
|
Name: "TestService.LookupUser",
|
2021-07-16 00:41:10 +03:00
|
|
|
Path: []string{"/v1/user/{name}"},
|
2021-07-14 11:48:20 +03:00
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-20 23:03:51 +03:00
|
|
|
{
|
2021-07-16 00:41:10 +03:00
|
|
|
Name: "TestService.UpdateUser",
|
|
|
|
Path: []string{"/v1/user/{name}"},
|
|
|
|
Method: []string{"PUT"},
|
|
|
|
Body: "*",
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-20 23:03:51 +03:00
|
|
|
{
|
2021-07-16 00:41:10 +03:00
|
|
|
Name: "TestService.DeleteUser",
|
|
|
|
Path: []string{"/v1/user/{name}"},
|
|
|
|
Method: []string{"DELETE"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-20 23:03:51 +03:00
|
|
|
{
|
2021-07-16 00:41:10 +03:00
|
|
|
Name: "TestService.MailUser",
|
|
|
|
Path: []string{"/v1/user/{name}/mail"},
|
|
|
|
Method: []string{"POST"},
|
|
|
|
Body: "*",
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-07-14 11:48:20 +03:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewTestServiceEndpoints() []api.Endpoint {
|
|
|
|
return TestServiceEndpoints
|
|
|
|
}
|
|
|
|
|
|
|
|
type TestServiceClient interface {
|
|
|
|
LookupUser(ctx context.Context, req *LookupUserReq, opts ...client.CallOption) (*LookupUserRsp, error)
|
2021-07-16 00:41:10 +03:00
|
|
|
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)
|
2021-07-14 11:48:20 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type TestServiceServer interface {
|
|
|
|
LookupUser(ctx context.Context, req *LookupUserReq, rsp *LookupUserRsp) error
|
2021-07-16 00:41:10 +03:00
|
|
|
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
|
2021-07-14 11:48:20 +03:00
|
|
|
}
|