Documentation
¶
Overview ¶
Copyright (c) Alex Ellis 2018. All rights reserved. Copyright (c) OpenFaaS Author(s) 2020. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionHandler ¶
FunctionHandler used for a serverless Go method invocation
type Request ¶
type Request struct {
Body []byte
Header http.Header
QueryString string
Method string
Host string
// contains filtered or unexported fields
}
Request of function call
func (*Request) WithContext ¶
WithContext overides the context for the Request struct
type Response ¶
type Response struct {
// Body the body will be written back
Body []byte
// StatusCode needs to be populated with value such as http.StatusOK
StatusCode int
// Header is optional and contains any additional headers the function response should set
Header http.Header
}
Response of function call
Click to show internal directories.
Click to hide internal directories.