Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
GraphqlClient *graphql.Client
GetSecret func(secretName string) (secretBytes []byte, err error)
GetEnv func(key string) (string, bool)
}
Context of the function call
type FunctionHandler ¶
FunctionHandler used for a serverless Go method invocation
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.