2021-07-14 11:48:20 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2021-07-16 00:41:10 +03:00
|
|
|
// protoc-gen-go-micro version: v3.4.2
|
2021-07-14 11:48:20 +03:00
|
|
|
// 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",
|
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-07-16 00:41:10 +03:00
|
|
|
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",
|
|
|
|
},
|
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
|
|
|
}
|