-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
feeds_manager_wsrpc.pb.go
256 lines (225 loc) · 7.99 KB
/
feeds_manager_wsrpc.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
// Code generated by protoc-gen-go-wsrpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-wsrpc v0.0.1
// - protoc v3.21.7
package proto
import (
context "context"
wsrpc "github.com/smartcontractkit/wsrpc"
)
// FeedsManagerClient is the client API for FeedsManager service.
type FeedsManagerClient interface {
ApprovedJob(ctx context.Context, in *ApprovedJobRequest) (*ApprovedJobResponse, error)
Healthcheck(ctx context.Context, in *HealthcheckRequest) (*HealthcheckResponse, error)
UpdateNode(ctx context.Context, in *UpdateNodeRequest) (*UpdateNodeResponse, error)
RejectedJob(ctx context.Context, in *RejectedJobRequest) (*RejectedJobResponse, error)
CancelledJob(ctx context.Context, in *CancelledJobRequest) (*CancelledJobResponse, error)
}
type feedsManagerClient struct {
cc wsrpc.ClientInterface
}
func NewFeedsManagerClient(cc wsrpc.ClientInterface) FeedsManagerClient {
return &feedsManagerClient{cc}
}
func (c *feedsManagerClient) ApprovedJob(ctx context.Context, in *ApprovedJobRequest) (*ApprovedJobResponse, error) {
out := new(ApprovedJobResponse)
err := c.cc.Invoke(ctx, "ApprovedJob", in, out)
if err != nil {
return nil, err
}
return out, nil
}
func (c *feedsManagerClient) Healthcheck(ctx context.Context, in *HealthcheckRequest) (*HealthcheckResponse, error) {
out := new(HealthcheckResponse)
err := c.cc.Invoke(ctx, "Healthcheck", in, out)
if err != nil {
return nil, err
}
return out, nil
}
func (c *feedsManagerClient) UpdateNode(ctx context.Context, in *UpdateNodeRequest) (*UpdateNodeResponse, error) {
out := new(UpdateNodeResponse)
err := c.cc.Invoke(ctx, "UpdateNode", in, out)
if err != nil {
return nil, err
}
return out, nil
}
func (c *feedsManagerClient) RejectedJob(ctx context.Context, in *RejectedJobRequest) (*RejectedJobResponse, error) {
out := new(RejectedJobResponse)
err := c.cc.Invoke(ctx, "RejectedJob", in, out)
if err != nil {
return nil, err
}
return out, nil
}
func (c *feedsManagerClient) CancelledJob(ctx context.Context, in *CancelledJobRequest) (*CancelledJobResponse, error) {
out := new(CancelledJobResponse)
err := c.cc.Invoke(ctx, "CancelledJob", in, out)
if err != nil {
return nil, err
}
return out, nil
}
// FeedsManagerServer is the server API for FeedsManager service.
type FeedsManagerServer interface {
ApprovedJob(context.Context, *ApprovedJobRequest) (*ApprovedJobResponse, error)
Healthcheck(context.Context, *HealthcheckRequest) (*HealthcheckResponse, error)
UpdateNode(context.Context, *UpdateNodeRequest) (*UpdateNodeResponse, error)
RejectedJob(context.Context, *RejectedJobRequest) (*RejectedJobResponse, error)
CancelledJob(context.Context, *CancelledJobRequest) (*CancelledJobResponse, error)
}
func RegisterFeedsManagerServer(s wsrpc.ServiceRegistrar, srv FeedsManagerServer) {
s.RegisterService(&FeedsManager_ServiceDesc, srv)
}
func _FeedsManager_ApprovedJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(ApprovedJobRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(FeedsManagerServer).ApprovedJob(ctx, in)
}
func _FeedsManager_Healthcheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(HealthcheckRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(FeedsManagerServer).Healthcheck(ctx, in)
}
func _FeedsManager_UpdateNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(UpdateNodeRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(FeedsManagerServer).UpdateNode(ctx, in)
}
func _FeedsManager_RejectedJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(RejectedJobRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(FeedsManagerServer).RejectedJob(ctx, in)
}
func _FeedsManager_CancelledJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(CancelledJobRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(FeedsManagerServer).CancelledJob(ctx, in)
}
// FeedsManager_ServiceDesc is the wsrpc.ServiceDesc for FeedsManager service.
// It's only intended for direct use with wsrpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var FeedsManager_ServiceDesc = wsrpc.ServiceDesc{
ServiceName: "cfm.FeedsManager",
HandlerType: (*FeedsManagerServer)(nil),
Methods: []wsrpc.MethodDesc{
{
MethodName: "ApprovedJob",
Handler: _FeedsManager_ApprovedJob_Handler,
},
{
MethodName: "Healthcheck",
Handler: _FeedsManager_Healthcheck_Handler,
},
{
MethodName: "UpdateNode",
Handler: _FeedsManager_UpdateNode_Handler,
},
{
MethodName: "RejectedJob",
Handler: _FeedsManager_RejectedJob_Handler,
},
{
MethodName: "CancelledJob",
Handler: _FeedsManager_CancelledJob_Handler,
},
},
}
// NodeServiceClient is the client API for NodeService service.
type NodeServiceClient interface {
ProposeJob(ctx context.Context, in *ProposeJobRequest) (*ProposeJobResponse, error)
DeleteJob(ctx context.Context, in *DeleteJobRequest) (*DeleteJobResponse, error)
RevokeJob(ctx context.Context, in *RevokeJobRequest) (*RevokeJobResponse, error)
}
type nodeServiceClient struct {
cc wsrpc.ClientInterface
}
func NewNodeServiceClient(cc wsrpc.ClientInterface) NodeServiceClient {
return &nodeServiceClient{cc}
}
func (c *nodeServiceClient) ProposeJob(ctx context.Context, in *ProposeJobRequest) (*ProposeJobResponse, error) {
out := new(ProposeJobResponse)
err := c.cc.Invoke(ctx, "ProposeJob", in, out)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeServiceClient) DeleteJob(ctx context.Context, in *DeleteJobRequest) (*DeleteJobResponse, error) {
out := new(DeleteJobResponse)
err := c.cc.Invoke(ctx, "DeleteJob", in, out)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeServiceClient) RevokeJob(ctx context.Context, in *RevokeJobRequest) (*RevokeJobResponse, error) {
out := new(RevokeJobResponse)
err := c.cc.Invoke(ctx, "RevokeJob", in, out)
if err != nil {
return nil, err
}
return out, nil
}
// NodeServiceServer is the server API for NodeService service.
type NodeServiceServer interface {
ProposeJob(context.Context, *ProposeJobRequest) (*ProposeJobResponse, error)
DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error)
RevokeJob(context.Context, *RevokeJobRequest) (*RevokeJobResponse, error)
}
func RegisterNodeServiceServer(s wsrpc.ServiceRegistrar, srv NodeServiceServer) {
s.RegisterService(&NodeService_ServiceDesc, srv)
}
func _NodeService_ProposeJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(ProposeJobRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(NodeServiceServer).ProposeJob(ctx, in)
}
func _NodeService_DeleteJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(DeleteJobRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(NodeServiceServer).DeleteJob(ctx, in)
}
func _NodeService_RevokeJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(RevokeJobRequest)
if err := dec(in); err != nil {
return nil, err
}
return srv.(NodeServiceServer).RevokeJob(ctx, in)
}
// NodeService_ServiceDesc is the wsrpc.ServiceDesc for NodeService service.
// It's only intended for direct use with wsrpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var NodeService_ServiceDesc = wsrpc.ServiceDesc{
ServiceName: "cfm.NodeService",
HandlerType: (*NodeServiceServer)(nil),
Methods: []wsrpc.MethodDesc{
{
MethodName: "ProposeJob",
Handler: _NodeService_ProposeJob_Handler,
},
{
MethodName: "DeleteJob",
Handler: _NodeService_DeleteJob_Handler,
},
{
MethodName: "RevokeJob",
Handler: _NodeService_RevokeJob_Handler,
},
},
}