go_wireproto/test_obj_multi_resp.go
brent saner d4bb259b83
v1.0.0
Initial release.
2024-07-10 00:18:54 -04:00

57 lines
1.3 KiB
Go

package wireproto
var (
// RESPONSE (Complex)
testMultiResp *Response = &Response{
Status: AsciiACK,
Checksum: 2928197330, // 0xae88bed2
ProtocolVersion: ProtoVersion,
RecordGroups: []*ResponseRecordGroup{
&ResponseRecordGroup{
Records: []*ResponseRecord{
&ResponseRecord{
Pairs: []*FieldValuePair{
&FieldValuePair{
Name: []byte("dataA1"),
Value: []byte("<arbitrary data>"),
},
},
OriginalRecord: testMultiReq.RecordGroups[0].Records[0],
},
&ResponseRecord{
Pairs: []*FieldValuePair{
&FieldValuePair{
Name: []byte("dataA2"),
Value: []byte("<arbitrary data>"),
},
},
OriginalRecord: testMultiReq.RecordGroups[0].Records[1],
},
},
},
&ResponseRecordGroup{
Records: []*ResponseRecord{
&ResponseRecord{
Pairs: []*FieldValuePair{
&FieldValuePair{
Name: []byte("dataB1"),
Value: []byte("<arbitrary data>"),
},
},
OriginalRecord: testMultiReq.RecordGroups[1].Records[0],
},
&ResponseRecord{
Pairs: []*FieldValuePair{
&FieldValuePair{
Name: []byte("dataB2"),
Value: []byte("<arbitrary data>"),
},
},
OriginalRecord: testMultiReq.RecordGroups[1].Records[1],
},
},
},
},
}
)