MCPcopy
hub / github.com/TarsCloud/TarsGo / ResponsePacket

Struct ResponsePacket

tars/protocol/res/requestf/RequestF.go:320–330  ·  view source on GitHub ↗

ResponsePacket struct implement

Source from the content-addressed store, hash-verified

318
319// ResponsePacket struct implement
320type ResponsePacket struct {
321 IVersion int16 `json:"iVersion" tars:"iVersion,tag:1,require:true"`
322 CPacketType int8 `json:"cPacketType" tars:"cPacketType,tag:2,require:true"`
323 IRequestId int32 `json:"iRequestId" tars:"iRequestId,tag:3,require:true"`
324 IMessageType int32 `json:"iMessageType" tars:"iMessageType,tag:4,require:true"`
325 IRet int32 `json:"iRet" tars:"iRet,tag:5,require:true"`
326 SBuffer []int8 `json:"sBuffer" tars:"sBuffer,tag:6,require:true"`
327 Status map[string]string `json:"status" tars:"status,tag:7,require:true"`
328 SResultDesc string `json:"sResultDesc" tars:"sResultDesc,tag:8,require:false"`
329 Context map[string]string `json:"context" tars:"context,tag:9,require:false"`
330}
331
332func (st *ResponsePacket) ResetDefault() {
333 st.CPacketType = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected