Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorBody ¶
type ErrorBody struct {
Message string `json:"message"`
}
ErrorBody represents an error used in response body
type Response ¶
type Response events.APIGatewayProxyResponse
Response is returned from lambda proxy integration
func NewBinaryResponse ¶ added in v1.4.0
func NewBinaryResponse(code int, content []byte, contentType, disposition, filename string) Response
NewBinaryResponse returns a binary response. If filename is not empty, it will be used as the filename in the Content-Disposition header.
func NewErrorResponse ¶
NewErrorResponse returns an error response
func NewSuccessJSONResponse ¶
NewSuccessJSONResponse returns a successful response
Click to show internal directories.
Click to hide internal directories.