2021-10-27 01:24:35 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
|
|
|
// protoc-gen-go-micro version: v3.5.3
|
2021-06-30 17:53:06 +03:00
|
|
|
// source: test.proto
|
2021-10-27 01:24:35 +03:00
|
|
|
|
2021-06-30 17:53:06 +03:00
|
|
|
package pb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2022-01-24 22:44:26 +03:00
|
|
|
|
2021-10-27 01:24:35 +03:00
|
|
|
api "go.unistack.org/micro/v3/api"
|
|
|
|
client "go.unistack.org/micro/v3/client"
|
|
|
|
codec "go.unistack.org/micro/v3/codec"
|
2021-06-30 17:53:06 +03:00
|
|
|
)
|
|
|
|
|
2021-10-27 01:24:35 +03:00
|
|
|
var (
|
|
|
|
TestServiceName = "TestService"
|
|
|
|
|
|
|
|
TestServiceEndpoints = []api.Endpoint{
|
|
|
|
{
|
2021-06-30 17:53:06 +03:00
|
|
|
Name: "TestService.TestEndpoint",
|
|
|
|
Path: []string{"/users/test"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-10-27 01:24:35 +03:00
|
|
|
{
|
2021-06-30 17:53:06 +03:00
|
|
|
Name: "TestService.UserByID",
|
|
|
|
Path: []string{"/users/{id}"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-10-27 01:24:35 +03:00
|
|
|
{
|
2021-06-30 17:53:06 +03:00
|
|
|
Name: "TestService.UserImageByID",
|
|
|
|
Path: []string{"/users/{id}/image"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-10-27 01:24:35 +03:00
|
|
|
{
|
2021-06-30 17:53:06 +03:00
|
|
|
Name: "TestService.UploadFile",
|
|
|
|
Path: []string{"/users/image/upload"},
|
|
|
|
Method: []string{"POST"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-10-27 01:24:35 +03:00
|
|
|
{
|
2021-06-30 17:53:06 +03:00
|
|
|
Name: "TestService.KzAmlRs",
|
|
|
|
Path: []string{"/aml"},
|
|
|
|
Method: []string{"POST"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
|
|
|
}
|
2021-10-27 01:24:35 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func NewTestServiceEndpoints() []api.Endpoint {
|
|
|
|
return TestServiceEndpoints
|
2021-06-30 17:53:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|