Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedEventType indicates that the received lambda event is not supported ErrUnsupportedEventType = errors.New("unsupported lambda event type") )
Functions ¶
func GetEvent ¶
GetEvent returns the lambda event stored within the specified request context if it exists
Types ¶
type Handler ¶
Handler represents a lambda event handler
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
ResponseWriter represents a lambda event response writer
func NewResponseWriter ¶
func NewResponseWriter() *ResponseWriter
NewResponseWriter returns a new ResponseWriter
func (*ResponseWriter) Body ¶
func (w *ResponseWriter) Body() string
Body returns the response body as a string
func (*ResponseWriter) Header ¶
func (w *ResponseWriter) Header() http.Header
Header returns the response headers
func (*ResponseWriter) Status ¶
func (w *ResponseWriter) Status() string
Status returns the HTTP status as a string
func (*ResponseWriter) StatusCode ¶
func (w *ResponseWriter) StatusCode() int
StatusCode returns the HTTP status code
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(code int)
WriteHeader writes the specified status if the header has not been written
Click to show internal directories.
Click to hide internal directories.