-
Notifications
You must be signed in to change notification settings - Fork 1
/
json_ds_definition.go
36 lines (30 loc) · 1004 Bytes
/
json_ds_definition.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
type RespMap []struct {
HTTPRequest HTTPRequest `json:"httpRequest,omitempty"`
HTTPResponse HTTPResponse `json:"httpResponse,omitempty"`
// Times Times `json:"times,omitempty"`
// TimeToLive TimeToLive `json:"timeToLive,omitempty"`
}
type HTTPRequest struct {
Headers Headers `json:"headers"`
Method string `json:"method"`
Path string `json:"path"`
QueryStringParameters AnyT `json:"queryStringParameters"`
Cookies Cookies `json:"cookies"`
Body Body `json:"body"`
}
type Headers struct {
ContentType []string `json:"Content-Type"`
}
type Body struct {
Type string `json:"type"`
String string `json:"string"`
ContentType string `json:"contentType"`
}
type Cookies map[string]string
type AnyT map[string]interface{}
type HTTPResponse struct {
StatusCode int `json:"statusCode"`
Body string `json:"body"`
Cookies Cookies `json:"cookies"`
}