1
1
// Package adminf comment
2
- // This file was generated by tars2go 1.1.6
2
+ // This file was generated by tars2go 1.1.7
3
3
// Generated from AdminF.tars
4
4
package adminf
5
5
@@ -48,10 +48,10 @@ func (obj *AdminF) Shutdown(opts ...map[string]string) (err error) {
48
48
contextMap = opts [0 ]
49
49
statusMap = opts [1 ]
50
50
}
51
- resp := new (requestf.ResponsePacket )
51
+ tarsResp := new (requestf.ResponsePacket )
52
52
tarsCtx := context .Background ()
53
53
54
- err = obj .servant .TarsInvoke (tarsCtx , 0 , "shutdown" , buf .ToBytes (), statusMap , contextMap , resp )
54
+ err = obj .servant .TarsInvoke (tarsCtx , 0 , "shutdown" , buf .ToBytes (), statusMap , contextMap , tarsResp )
55
55
if err != nil {
56
56
return err
57
57
}
@@ -60,20 +60,20 @@ func (obj *AdminF) Shutdown(opts ...map[string]string) (err error) {
60
60
for k := range contextMap {
61
61
delete (contextMap , k )
62
62
}
63
- for k , v := range resp .Context {
63
+ for k , v := range tarsResp .Context {
64
64
contextMap [k ] = v
65
65
}
66
66
} else if len (opts ) == 2 {
67
67
for k := range contextMap {
68
68
delete (contextMap , k )
69
69
}
70
- for k , v := range resp .Context {
70
+ for k , v := range tarsResp .Context {
71
71
contextMap [k ] = v
72
72
}
73
73
for k := range statusMap {
74
74
delete (statusMap , k )
75
75
}
76
- for k , v := range resp .Status {
76
+ for k , v := range tarsResp .Status {
77
77
statusMap [k ] = v
78
78
}
79
79
}
@@ -100,8 +100,8 @@ func (obj *AdminF) ShutdownWithContext(tarsCtx context.Context, opts ...map[stri
100
100
statusMap = opts [1 ]
101
101
}
102
102
103
- resp := new (requestf.ResponsePacket )
104
- err = obj .servant .TarsInvoke (tarsCtx , 0 , "shutdown" , buf .ToBytes (), statusMap , contextMap , resp )
103
+ tarsResp := new (requestf.ResponsePacket )
104
+ err = obj .servant .TarsInvoke (tarsCtx , 0 , "shutdown" , buf .ToBytes (), statusMap , contextMap , tarsResp )
105
105
if err != nil {
106
106
return err
107
107
}
@@ -110,20 +110,20 @@ func (obj *AdminF) ShutdownWithContext(tarsCtx context.Context, opts ...map[stri
110
110
for k := range contextMap {
111
111
delete (contextMap , k )
112
112
}
113
- for k , v := range resp .Context {
113
+ for k , v := range tarsResp .Context {
114
114
contextMap [k ] = v
115
115
}
116
116
} else if len (opts ) == 2 {
117
117
for k := range contextMap {
118
118
delete (contextMap , k )
119
119
}
120
- for k , v := range resp .Context {
120
+ for k , v := range tarsResp .Context {
121
121
contextMap [k ] = v
122
122
}
123
123
for k := range statusMap {
124
124
delete (statusMap , k )
125
125
}
126
- for k , v := range resp .Status {
126
+ for k , v := range tarsResp .Status {
127
127
statusMap [k ] = v
128
128
}
129
129
}
@@ -150,8 +150,8 @@ func (obj *AdminF) ShutdownOneWayWithContext(tarsCtx context.Context, opts ...ma
150
150
statusMap = opts [1 ]
151
151
}
152
152
153
- resp := new (requestf.ResponsePacket )
154
- err = obj .servant .TarsInvoke (tarsCtx , 1 , "shutdown" , buf .ToBytes (), statusMap , contextMap , resp )
153
+ tarsResp := new (requestf.ResponsePacket )
154
+ err = obj .servant .TarsInvoke (tarsCtx , 1 , "shutdown" , buf .ToBytes (), statusMap , contextMap , tarsResp )
155
155
if err != nil {
156
156
return err
157
157
}
@@ -160,20 +160,20 @@ func (obj *AdminF) ShutdownOneWayWithContext(tarsCtx context.Context, opts ...ma
160
160
for k := range contextMap {
161
161
delete (contextMap , k )
162
162
}
163
- for k , v := range resp .Context {
163
+ for k , v := range tarsResp .Context {
164
164
contextMap [k ] = v
165
165
}
166
166
} else if len (opts ) == 2 {
167
167
for k := range contextMap {
168
168
delete (contextMap , k )
169
169
}
170
- for k , v := range resp .Context {
170
+ for k , v := range tarsResp .Context {
171
171
contextMap [k ] = v
172
172
}
173
173
for k := range statusMap {
174
174
delete (statusMap , k )
175
175
}
176
- for k , v := range resp .Status {
176
+ for k , v := range tarsResp .Status {
177
177
statusMap [k ] = v
178
178
}
179
179
}
@@ -204,15 +204,15 @@ func (obj *AdminF) Notify(command string, opts ...map[string]string) (ret string
204
204
contextMap = opts [0 ]
205
205
statusMap = opts [1 ]
206
206
}
207
- resp := new (requestf.ResponsePacket )
207
+ tarsResp := new (requestf.ResponsePacket )
208
208
tarsCtx := context .Background ()
209
209
210
- err = obj .servant .TarsInvoke (tarsCtx , 0 , "notify" , buf .ToBytes (), statusMap , contextMap , resp )
210
+ err = obj .servant .TarsInvoke (tarsCtx , 0 , "notify" , buf .ToBytes (), statusMap , contextMap , tarsResp )
211
211
if err != nil {
212
212
return ret , err
213
213
}
214
214
215
- readBuf := codec .NewReader (tools .Int8ToByte (resp .SBuffer ))
215
+ readBuf := codec .NewReader (tools .Int8ToByte (tarsResp .SBuffer ))
216
216
err = readBuf .ReadString (& ret , 0 , true )
217
217
if err != nil {
218
218
return ret , err
@@ -222,20 +222,20 @@ func (obj *AdminF) Notify(command string, opts ...map[string]string) (ret string
222
222
for k := range contextMap {
223
223
delete (contextMap , k )
224
224
}
225
- for k , v := range resp .Context {
225
+ for k , v := range tarsResp .Context {
226
226
contextMap [k ] = v
227
227
}
228
228
} else if len (opts ) == 2 {
229
229
for k := range contextMap {
230
230
delete (contextMap , k )
231
231
}
232
- for k , v := range resp .Context {
232
+ for k , v := range tarsResp .Context {
233
233
contextMap [k ] = v
234
234
}
235
235
for k := range statusMap {
236
236
delete (statusMap , k )
237
237
}
238
- for k , v := range resp .Status {
238
+ for k , v := range tarsResp .Status {
239
239
statusMap [k ] = v
240
240
}
241
241
}
@@ -267,13 +267,13 @@ func (obj *AdminF) NotifyWithContext(tarsCtx context.Context, command string, op
267
267
statusMap = opts [1 ]
268
268
}
269
269
270
- resp := new (requestf.ResponsePacket )
271
- err = obj .servant .TarsInvoke (tarsCtx , 0 , "notify" , buf .ToBytes (), statusMap , contextMap , resp )
270
+ tarsResp := new (requestf.ResponsePacket )
271
+ err = obj .servant .TarsInvoke (tarsCtx , 0 , "notify" , buf .ToBytes (), statusMap , contextMap , tarsResp )
272
272
if err != nil {
273
273
return ret , err
274
274
}
275
275
276
- readBuf := codec .NewReader (tools .Int8ToByte (resp .SBuffer ))
276
+ readBuf := codec .NewReader (tools .Int8ToByte (tarsResp .SBuffer ))
277
277
err = readBuf .ReadString (& ret , 0 , true )
278
278
if err != nil {
279
279
return ret , err
@@ -283,20 +283,20 @@ func (obj *AdminF) NotifyWithContext(tarsCtx context.Context, command string, op
283
283
for k := range contextMap {
284
284
delete (contextMap , k )
285
285
}
286
- for k , v := range resp .Context {
286
+ for k , v := range tarsResp .Context {
287
287
contextMap [k ] = v
288
288
}
289
289
} else if len (opts ) == 2 {
290
290
for k := range contextMap {
291
291
delete (contextMap , k )
292
292
}
293
- for k , v := range resp .Context {
293
+ for k , v := range tarsResp .Context {
294
294
contextMap [k ] = v
295
295
}
296
296
for k := range statusMap {
297
297
delete (statusMap , k )
298
298
}
299
- for k , v := range resp .Status {
299
+ for k , v := range tarsResp .Status {
300
300
statusMap [k ] = v
301
301
}
302
302
}
@@ -328,8 +328,8 @@ func (obj *AdminF) NotifyOneWayWithContext(tarsCtx context.Context, command stri
328
328
statusMap = opts [1 ]
329
329
}
330
330
331
- resp := new (requestf.ResponsePacket )
332
- err = obj .servant .TarsInvoke (tarsCtx , 1 , "notify" , buf .ToBytes (), statusMap , contextMap , resp )
331
+ tarsResp := new (requestf.ResponsePacket )
332
+ err = obj .servant .TarsInvoke (tarsCtx , 1 , "notify" , buf .ToBytes (), statusMap , contextMap , tarsResp )
333
333
if err != nil {
334
334
return ret , err
335
335
}
@@ -338,20 +338,20 @@ func (obj *AdminF) NotifyOneWayWithContext(tarsCtx context.Context, command stri
338
338
for k := range contextMap {
339
339
delete (contextMap , k )
340
340
}
341
- for k , v := range resp .Context {
341
+ for k , v := range tarsResp .Context {
342
342
contextMap [k ] = v
343
343
}
344
344
} else if len (opts ) == 2 {
345
345
for k := range contextMap {
346
346
delete (contextMap , k )
347
347
}
348
- for k , v := range resp .Context {
348
+ for k , v := range tarsResp .Context {
349
349
contextMap [k ] = v
350
350
}
351
351
for k := range statusMap {
352
352
delete (statusMap , k )
353
353
}
354
- for k , v := range resp .Status {
354
+ for k , v := range tarsResp .Status {
355
355
statusMap [k ] = v
356
356
}
357
357
}
0 commit comments