/
service.pb.go
138 lines (120 loc) · 5.68 KB
/
service.pb.go
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: orders/transactions/define/service.proto
package define
import (
context "context"
fmt "fmt"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("orders/transactions/define/service.proto", fileDescriptor_7538497e79fca1c1)
}
var fileDescriptor_7538497e79fca1c1 = []byte{
// 356 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd2, 0x31, 0x4b, 0xc3, 0x40,
0x14, 0x07, 0xf0, 0x26, 0x62, 0x87, 0xe0, 0x54, 0x10, 0x21, 0x68, 0x86, 0x4e, 0x4e, 0x77, 0x50,
0x11, 0xe1, 0x9c, 0x5a, 0x0b, 0xba, 0x84, 0x16, 0xed, 0x24, 0x01, 0xb9, 0x26, 0xcf, 0x18, 0x48,
0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 0xe6, 0x41, 0xe3, 0x7d, 0x1e, 0x34, 0xbc,
0x4e, 0x2c, 0x8b, 0x9a, 0x0d, 0x7a, 0x1b, 0x67, 0xf8, 0xf1, 0x86, 0x8b, 0x65, 0x0c, 0x9d, 0xf3,
0xc3, 0x34, 0xd3, 0x57, 0xd3, 0x31, 0x89, 0x65, 0x41, 0xbb, 0x8b, 0xa8, 0x10, 0x4b, 0x98, 0x28,
0x7a, 0x43, 0xff, 0x5f, 0xf3, 0x83, 0xbb, 0xde, 0x0d, 0x07, 0xa3, 0xfe, 0x93, 0x4b, 0xba, 0x56,
0x8b, 0xd0, 0xb4, 0x18, 0x60, 0x8b, 0x91, 0xdd, 0xa2, 0xbf, 0x84, 0xaf, 0x7f, 0x40, 0x64, 0x40,
0x84, 0x20, 0xb2, 0x41, 0x84, 0xa0, 0x72, 0x59, 0x3d, 0x10, 0x1d, 0x0f, 0x7b, 0x21, 0x68, 0x9e,
0x70, 0xcd, 0xbf, 0xdc, 0x8e, 0x85, 0x19, 0x33, 0x9a, 0x31, 0xe4, 0x8c, 0xd9, 0x9e, 0x31, 0x0c,
0x18, 0x37, 0x97, 0xbf, 0xcb, 0xde, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x2c, 0x9c, 0xba,
0x09, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
Handle(ctx context.Context, in *Message, opts ...grpc.CallOption) (*TransactionResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) Handle(ctx context.Context, in *Message, opts ...grpc.CallOption) (*TransactionResponse, error) {
out := new(TransactionResponse)
err := c.cc.Invoke(ctx, "/assetmantle.modules.orders.transactions.define.Msg/Handle", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
Handle(context.Context, *Message) (*TransactionResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) Handle(ctx context.Context, req *Message) (*TransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Handle not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_Handle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Message)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).Handle(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/assetmantle.modules.orders.transactions.define.Msg/Handle",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).Handle(ctx, req.(*Message))
}
return interceptor(ctx, in, info, handler)
}
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "assetmantle.modules.orders.transactions.define.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Handle",
Handler: _Msg_Handle_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "orders/transactions/define/service.proto",
}