Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudFunc ¶
type CloudFunc struct {
// contains filtered or unexported fields
}
CloudFunc represents communication interface
func NewCloudFunc ¶
func NewCloudFunc() *CloudFunc
func (*CloudFunc) GetRequest ¶
GetRequest accepts an request and unmarshals it to Request
func (*CloudFunc) SendResponse ¶
SendResponse marshalls given interface using json.Marshal and sends it back as a function output If the interface can't be serialized, it will be returned as a pure string
type Request ¶
type Request struct {
BaseURL string `json:"baseUrl"`
Body json.RawMessage `json:"body"`
Hostname string `json:"hostname"`
IP string `json:"ip"`
Method string `json:"method"`
OriginalURL string `json:"originalUrl"`
Query map[string]string `json:"query"`
}
Request is structure that represents http request that comes to function
Click to show internal directories.
Click to hide internal directories.