d4bb259b83
Initial release.
67 lines
1.4 KiB
Go
67 lines
1.4 KiB
Go
package wireproto
|
|
|
|
var (
|
|
// REQUEST (Complex)
|
|
testMultiReq *Request = &Request{
|
|
ProtocolVersion: ProtoVersion,
|
|
RecordGroups: []*RequestRecordGroup{
|
|
&RequestRecordGroup{
|
|
Records: []*RequestRecord{
|
|
&RequestRecord{
|
|
Pairs: []*FieldValuePair{
|
|
&FieldValuePair{
|
|
Name: []byte("fieldA1A"),
|
|
Value: []byte("valueA1A"),
|
|
},
|
|
&FieldValuePair{
|
|
Name: []byte("fieldA1B"),
|
|
Value: []byte("valueA1B"),
|
|
},
|
|
},
|
|
},
|
|
&RequestRecord{
|
|
Pairs: []*FieldValuePair{
|
|
&FieldValuePair{
|
|
Name: []byte("fieldA2A"),
|
|
Value: []byte("valueA2A"),
|
|
},
|
|
&FieldValuePair{
|
|
Name: []byte("fieldA2B"),
|
|
Value: []byte("valueA2B"),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
&RequestRecordGroup{
|
|
Records: []*RequestRecord{
|
|
&RequestRecord{
|
|
Pairs: []*FieldValuePair{
|
|
&FieldValuePair{
|
|
Name: []byte("fieldB1A"),
|
|
Value: []byte("valueB1A"),
|
|
},
|
|
&FieldValuePair{
|
|
Name: []byte("fieldB1B"),
|
|
Value: []byte("valueB1B"),
|
|
},
|
|
},
|
|
},
|
|
&RequestRecord{
|
|
Pairs: []*FieldValuePair{
|
|
&FieldValuePair{
|
|
Name: []byte("fieldB2A"),
|
|
Value: []byte("valueB2A"),
|
|
},
|
|
&FieldValuePair{
|
|
Name: []byte("fieldB2B"),
|
|
Value: []byte("valueB2B"),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
)
|