blob: c001b44ac9f4cce3faef723465b8200ea520a21d (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package types
import "net/http"
// HTTPRequest is used structure used to unmarshal message content from cloud
type HTTPRequest struct {
Header http.Header `json:"header"`
Body []byte `json:"body"`
Method string `json:"method"`
URL string `json:"url"`
}
// HTTPResponse is HTTP request's response structure used to send response to cloud
type HTTPResponse struct {
Header http.Header `json:"header"`
StatusCode int `json:"status_code"`
Body []byte `json:"body"`
}
const (
AuthorizationKey = "Authorization"
NodeNameKey = "NodeName"
)
|