Skip to content

Commit d7f1467

Browse files
authored
Merge pull request #369 from TarsCloud/feature/lbbniu/version
feat: change version v1.3.4
2 parents fa645db + cfc844c commit d7f1467

File tree

19 files changed

+466
-466
lines changed

19 files changed

+466
-466
lines changed

tars/protocol/res/adminf/AdminF.tars.go

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package adminf comment
2-
// This file was generated by tars2go 1.1.6
2+
// This file was generated by tars2go 1.1.7
33
// Generated from AdminF.tars
44
package adminf
55

@@ -48,10 +48,10 @@ func (obj *AdminF) Shutdown(opts ...map[string]string) (err error) {
4848
contextMap = opts[0]
4949
statusMap = opts[1]
5050
}
51-
resp := new(requestf.ResponsePacket)
51+
tarsResp := new(requestf.ResponsePacket)
5252
tarsCtx := context.Background()
5353

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)
5555
if err != nil {
5656
return err
5757
}
@@ -60,20 +60,20 @@ func (obj *AdminF) Shutdown(opts ...map[string]string) (err error) {
6060
for k := range contextMap {
6161
delete(contextMap, k)
6262
}
63-
for k, v := range resp.Context {
63+
for k, v := range tarsResp.Context {
6464
contextMap[k] = v
6565
}
6666
} else if len(opts) == 2 {
6767
for k := range contextMap {
6868
delete(contextMap, k)
6969
}
70-
for k, v := range resp.Context {
70+
for k, v := range tarsResp.Context {
7171
contextMap[k] = v
7272
}
7373
for k := range statusMap {
7474
delete(statusMap, k)
7575
}
76-
for k, v := range resp.Status {
76+
for k, v := range tarsResp.Status {
7777
statusMap[k] = v
7878
}
7979
}
@@ -100,8 +100,8 @@ func (obj *AdminF) ShutdownWithContext(tarsCtx context.Context, opts ...map[stri
100100
statusMap = opts[1]
101101
}
102102

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)
105105
if err != nil {
106106
return err
107107
}
@@ -110,20 +110,20 @@ func (obj *AdminF) ShutdownWithContext(tarsCtx context.Context, opts ...map[stri
110110
for k := range contextMap {
111111
delete(contextMap, k)
112112
}
113-
for k, v := range resp.Context {
113+
for k, v := range tarsResp.Context {
114114
contextMap[k] = v
115115
}
116116
} else if len(opts) == 2 {
117117
for k := range contextMap {
118118
delete(contextMap, k)
119119
}
120-
for k, v := range resp.Context {
120+
for k, v := range tarsResp.Context {
121121
contextMap[k] = v
122122
}
123123
for k := range statusMap {
124124
delete(statusMap, k)
125125
}
126-
for k, v := range resp.Status {
126+
for k, v := range tarsResp.Status {
127127
statusMap[k] = v
128128
}
129129
}
@@ -150,8 +150,8 @@ func (obj *AdminF) ShutdownOneWayWithContext(tarsCtx context.Context, opts ...ma
150150
statusMap = opts[1]
151151
}
152152

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)
155155
if err != nil {
156156
return err
157157
}
@@ -160,20 +160,20 @@ func (obj *AdminF) ShutdownOneWayWithContext(tarsCtx context.Context, opts ...ma
160160
for k := range contextMap {
161161
delete(contextMap, k)
162162
}
163-
for k, v := range resp.Context {
163+
for k, v := range tarsResp.Context {
164164
contextMap[k] = v
165165
}
166166
} else if len(opts) == 2 {
167167
for k := range contextMap {
168168
delete(contextMap, k)
169169
}
170-
for k, v := range resp.Context {
170+
for k, v := range tarsResp.Context {
171171
contextMap[k] = v
172172
}
173173
for k := range statusMap {
174174
delete(statusMap, k)
175175
}
176-
for k, v := range resp.Status {
176+
for k, v := range tarsResp.Status {
177177
statusMap[k] = v
178178
}
179179
}
@@ -204,15 +204,15 @@ func (obj *AdminF) Notify(command string, opts ...map[string]string) (ret string
204204
contextMap = opts[0]
205205
statusMap = opts[1]
206206
}
207-
resp := new(requestf.ResponsePacket)
207+
tarsResp := new(requestf.ResponsePacket)
208208
tarsCtx := context.Background()
209209

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)
211211
if err != nil {
212212
return ret, err
213213
}
214214

215-
readBuf := codec.NewReader(tools.Int8ToByte(resp.SBuffer))
215+
readBuf := codec.NewReader(tools.Int8ToByte(tarsResp.SBuffer))
216216
err = readBuf.ReadString(&ret, 0, true)
217217
if err != nil {
218218
return ret, err
@@ -222,20 +222,20 @@ func (obj *AdminF) Notify(command string, opts ...map[string]string) (ret string
222222
for k := range contextMap {
223223
delete(contextMap, k)
224224
}
225-
for k, v := range resp.Context {
225+
for k, v := range tarsResp.Context {
226226
contextMap[k] = v
227227
}
228228
} else if len(opts) == 2 {
229229
for k := range contextMap {
230230
delete(contextMap, k)
231231
}
232-
for k, v := range resp.Context {
232+
for k, v := range tarsResp.Context {
233233
contextMap[k] = v
234234
}
235235
for k := range statusMap {
236236
delete(statusMap, k)
237237
}
238-
for k, v := range resp.Status {
238+
for k, v := range tarsResp.Status {
239239
statusMap[k] = v
240240
}
241241
}
@@ -267,13 +267,13 @@ func (obj *AdminF) NotifyWithContext(tarsCtx context.Context, command string, op
267267
statusMap = opts[1]
268268
}
269269

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)
272272
if err != nil {
273273
return ret, err
274274
}
275275

276-
readBuf := codec.NewReader(tools.Int8ToByte(resp.SBuffer))
276+
readBuf := codec.NewReader(tools.Int8ToByte(tarsResp.SBuffer))
277277
err = readBuf.ReadString(&ret, 0, true)
278278
if err != nil {
279279
return ret, err
@@ -283,20 +283,20 @@ func (obj *AdminF) NotifyWithContext(tarsCtx context.Context, command string, op
283283
for k := range contextMap {
284284
delete(contextMap, k)
285285
}
286-
for k, v := range resp.Context {
286+
for k, v := range tarsResp.Context {
287287
contextMap[k] = v
288288
}
289289
} else if len(opts) == 2 {
290290
for k := range contextMap {
291291
delete(contextMap, k)
292292
}
293-
for k, v := range resp.Context {
293+
for k, v := range tarsResp.Context {
294294
contextMap[k] = v
295295
}
296296
for k := range statusMap {
297297
delete(statusMap, k)
298298
}
299-
for k, v := range resp.Status {
299+
for k, v := range tarsResp.Status {
300300
statusMap[k] = v
301301
}
302302
}
@@ -328,8 +328,8 @@ func (obj *AdminF) NotifyOneWayWithContext(tarsCtx context.Context, command stri
328328
statusMap = opts[1]
329329
}
330330

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)
333333
if err != nil {
334334
return ret, err
335335
}
@@ -338,20 +338,20 @@ func (obj *AdminF) NotifyOneWayWithContext(tarsCtx context.Context, command stri
338338
for k := range contextMap {
339339
delete(contextMap, k)
340340
}
341-
for k, v := range resp.Context {
341+
for k, v := range tarsResp.Context {
342342
contextMap[k] = v
343343
}
344344
} else if len(opts) == 2 {
345345
for k := range contextMap {
346346
delete(contextMap, k)
347347
}
348-
for k, v := range resp.Context {
348+
for k, v := range tarsResp.Context {
349349
contextMap[k] = v
350350
}
351351
for k := range statusMap {
352352
delete(statusMap, k)
353353
}
354-
for k, v := range resp.Status {
354+
for k, v := range tarsResp.Status {
355355
statusMap[k] = v
356356
}
357357
}

tars/protocol/res/basef/BaseF.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package basef comment
2-
// This file was generated by tars2go 1.1.6
2+
// This file was generated by tars2go 1.1.7
33
// Generated from BaseF.tars
44
package basef
55

0 commit comments

Comments
 (0)