-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecho_service.pb.go
More file actions
120 lines (97 loc) · 4.33 KB
/
Copy pathecho_service.pb.go
File metadata and controls
120 lines (97 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: echo_service.proto
package main
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
import (
"context"
frog "github.com/yplusplus/frog"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var E_MethodId = &proto.ExtensionDesc{
ExtendedType: (*google_protobuf.MethodOptions)(nil),
ExtensionType: (*int32)(nil),
Field: 1000,
Name: "method_id",
Tag: "varint,1000,opt,name=method_id",
Filename: "echo_service.proto",
}
var E_MethodName = &proto.ExtensionDesc{
ExtendedType: (*google_protobuf.MethodOptions)(nil),
ExtensionType: (*string)(nil),
Field: 1001,
Name: "method_name",
Tag: "bytes,1001,opt,name=method_name",
Filename: "echo_service.proto",
}
func init() {
proto.RegisterExtension(E_MethodId)
proto.RegisterExtension(E_MethodName)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
// Stub for EchoService service
type echoServiceStub struct {
channel frog.RpcChannel
}
func NewEchoServiceStub(channel frog.RpcChannel) *echoServiceStub {
return &echoServiceStub{channel}
}
func (stub *echoServiceStub) Echo(ctx context.Context, in *ProtoEchoRequest, out *ProtoEchoResponse) error {
err := stub.Call(EchoService_ServiceDesc.Method(0), ctx, in, out)
return err
}
func (stub *echoServiceStub) AsyncEcho(ctx context.Context, in *ProtoEchoRequest, out *ProtoEchoResponse) frog.RpcCall {
return stub.Go(EchoService_ServiceDesc.Method(0), ctx, in, out)
}
func (stub *echoServiceStub) Echo2(ctx context.Context, in *ProtoEchoRequest, out *ProtoEchoResponse) error {
err := stub.Call(EchoService_ServiceDesc.Method(1), ctx, in, out)
return err
}
func (stub *echoServiceStub) AsyncEcho2(ctx context.Context, in *ProtoEchoRequest, out *ProtoEchoResponse) frog.RpcCall {
return stub.Go(EchoService_ServiceDesc.Method(1), ctx, in, out)
}
func (stub *echoServiceStub) Call(method *frog.MethodDesc, ctx context.Context, in proto.Message, out proto.Message) error {
call := stub.channel.Go(method, ctx, in, out)
<-call.Done()
return call.Error()
}
func (stub *echoServiceStub) Go(method *frog.MethodDesc, ctx context.Context, in proto.Message, out proto.Message) frog.RpcCall {
return stub.channel.Go(method, ctx, in, out)
}
type EchoService interface {
Echo(context.Context, *ProtoEchoRequest, *ProtoEchoResponse) error
Echo2(context.Context, *ProtoEchoRequest, *ProtoEchoResponse) error
}
func RegisterEchoService(service EchoService, register frog.MethodsRegister) error {
return frog.RegisterService(EchoService_ServiceDesc, service, register)
}
var (
EchoService_ServiceDesc *frog.ServiceDesc
)
func init() {
frog.GenerateServiceDesc(fileDescriptor1)
EchoService_ServiceDesc = frog.ServiceDescriptor("EchoService_ServiceDesc")
}
func init() { proto.RegisterFile("echo_service.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 204 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0x4d, 0xce, 0xc8,
0x8f, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x97, 0x52,
0x48, 0xcf, 0xcf, 0x4f, 0xcf, 0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