69
protoc-gen-go-micro/proto/test_micro.pb.go
Normal file
69
protoc-gen-go-micro/proto/test_micro.pb.go
Normal file
@@ -0,0 +1,69 @@
|
||||
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
||||
// protoc-gen-go-micro version: v3.5.3
|
||||
// source: test.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
api "go.unistack.org/micro/v3/api"
|
||||
client "go.unistack.org/micro/v3/client"
|
||||
codec "go.unistack.org/micro/v3/codec"
|
||||
)
|
||||
|
||||
var (
|
||||
TestServiceName = "TestService"
|
||||
|
||||
TestServiceEndpoints = []api.Endpoint{
|
||||
{
|
||||
Name: "TestService.TestEndpoint",
|
||||
Path: []string{"/users/test"},
|
||||
Method: []string{"GET"},
|
||||
Handler: "rpc",
|
||||
},
|
||||
{
|
||||
Name: "TestService.UserByID",
|
||||
Path: []string{"/users/{id}"},
|
||||
Method: []string{"GET"},
|
||||
Handler: "rpc",
|
||||
},
|
||||
{
|
||||
Name: "TestService.UserImageByID",
|
||||
Path: []string{"/users/{id}/image"},
|
||||
Method: []string{"GET"},
|
||||
Handler: "rpc",
|
||||
},
|
||||
{
|
||||
Name: "TestService.UploadFile",
|
||||
Path: []string{"/users/image/upload"},
|
||||
Method: []string{"POST"},
|
||||
Handler: "rpc",
|
||||
},
|
||||
{
|
||||
Name: "TestService.KzAmlRs",
|
||||
Path: []string{"/aml"},
|
||||
Method: []string{"POST"},
|
||||
Handler: "rpc",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
func NewTestServiceEndpoints() []api.Endpoint {
|
||||
return TestServiceEndpoints
|
||||
}
|
||||
|
||||
type TestServiceClient interface {
|
||||
TestEndpoint(ctx context.Context, req *Request, opts ...client.CallOption) (*Response, error)
|
||||
UserByID(ctx context.Context, req *Request, opts ...client.CallOption) (*Response, error)
|
||||
UserImageByID(ctx context.Context, req *Request, opts ...client.CallOption) (*codec.Frame, error)
|
||||
UploadFile(ctx context.Context, req *RequestImage, opts ...client.CallOption) (*ResponseImage, error)
|
||||
KzAmlRs(ctx context.Context, req *RequestAml, opts ...client.CallOption) (*ResponseAml, error)
|
||||
}
|
||||
|
||||
type TestServiceServer interface {
|
||||
TestEndpoint(ctx context.Context, req *Request, rsp *Response) error
|
||||
UserByID(ctx context.Context, req *Request, rsp *Response) error
|
||||
UserImageByID(ctx context.Context, req *Request, rsp *codec.Frame) error
|
||||
UploadFile(ctx context.Context, req *RequestImage, rsp *ResponseImage) error
|
||||
KzAmlRs(ctx context.Context, req *RequestAml, rsp *ResponseAml) error
|
||||
}
|
Reference in New Issue
Block a user