micro-tests/flow/proto/test_micro.pb.go

63 lines
1.8 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// protoc-gen-go-micro version: v3.4.2
// 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/{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",
},
}
)
func NewTestServiceEndpoints() []api.Endpoint {
return TestServiceEndpoints
}
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
}