Versions in this module Expand all Collapse all v0 v0.3.0 Sep 27, 2023 v0.2.0 Sep 3, 2023 Changes in this version + const APIGwContextHeader + const APIGwStageVarsHeader + const CustomHostVariable + func GatewayTimeout() events.APIGatewayProxyResponse + func GatewayTimeoutV2() events.APIGatewayV2HTTPResponse + func GetAPIGatewayContextFromContext(ctx context.Context) (events.APIGatewayProxyRequestContext, bool) + func GetAPIGatewayV2ContextFromContext(ctx context.Context) (events.APIGatewayV2HTTPRequestContext, bool) + func GetRuntimeContextFromContext(ctx context.Context) (*lambdacontext.LambdaContext, bool) + func GetRuntimeContextFromContextV2(ctx context.Context) (*lambdacontext.LambdaContext, bool) + func GetStageVarsFromContext(ctx context.Context) (map[string]string, bool) + func GetStageVarsFromContextV2(ctx context.Context) (map[string]string, bool) + func NewLoggedError(format string, a ...interface{}) error + type ProxyResponseWriter struct + func NewProxyResponseWriter() *ProxyResponseWriter + func (r *ProxyResponseWriter) CloseNotify() <-chan bool + func (r *ProxyResponseWriter) GetProxyResponse() (events.APIGatewayProxyResponse, error) + func (r *ProxyResponseWriter) Header() http.Header + func (r *ProxyResponseWriter) Write(body []byte) (int, error) + func (r *ProxyResponseWriter) WriteHeader(status int) + type ProxyResponseWriterV2 struct + func NewProxyResponseWriterV2() *ProxyResponseWriterV2 + func (r *ProxyResponseWriterV2) CloseNotify() <-chan bool + func (r *ProxyResponseWriterV2) GetProxyResponse() (events.APIGatewayV2HTTPResponse, error) + func (r *ProxyResponseWriterV2) Header() http.Header + func (r *ProxyResponseWriterV2) Write(body []byte) (int, error) + func (r *ProxyResponseWriterV2) WriteHeader(status int) + type RequestAccessor struct + func (r *RequestAccessor) EventToRequest(req events.APIGatewayProxyRequest) (*http.Request, error) + func (r *RequestAccessor) EventToRequestWithContext(ctx context.Context, req events.APIGatewayProxyRequest) (*http.Request, error) + func (r *RequestAccessor) GetAPIGatewayContext(req *http.Request) (events.APIGatewayProxyRequestContext, error) + func (r *RequestAccessor) GetAPIGatewayStageVars(req *http.Request) (map[string]string, error) + func (r *RequestAccessor) ProxyEventToHTTPRequest(req events.APIGatewayProxyRequest) (*http.Request, error) + func (r *RequestAccessor) StripBasePath(basePath string) string + type RequestAccessorV2 struct + func (r *RequestAccessorV2) EventToRequest(req events.APIGatewayV2HTTPRequest) (*http.Request, error) + func (r *RequestAccessorV2) EventToRequestWithContext(ctx context.Context, req events.APIGatewayV2HTTPRequest) (*http.Request, error) + func (r *RequestAccessorV2) GetAPIGatewayContextV2(req *http.Request) (events.APIGatewayV2HTTPRequestContext, error) + func (r *RequestAccessorV2) GetAPIGatewayStageVars(req *http.Request) (map[string]string, error) + func (r *RequestAccessorV2) ProxyEventToHTTPRequest(req events.APIGatewayV2HTTPRequest) (*http.Request, error) + func (r *RequestAccessorV2) StripBasePath(basePath string) string + type SwitchableAPIGatewayRequest struct + func NewSwitchableAPIGatewayRequestV1(v *events.APIGatewayProxyRequest) *SwitchableAPIGatewayRequest + func NewSwitchableAPIGatewayRequestV2(v *events.APIGatewayV2HTTPRequest) *SwitchableAPIGatewayRequest + func (s *SwitchableAPIGatewayRequest) MarshalJSON() ([]byte, error) + func (s *SwitchableAPIGatewayRequest) UnmarshalJSON(b []byte) error + func (s *SwitchableAPIGatewayRequest) Version1() *events.APIGatewayProxyRequest + func (s *SwitchableAPIGatewayRequest) Version2() *events.APIGatewayV2HTTPRequest + type SwitchableAPIGatewayResponse struct + func NewSwitchableAPIGatewayResponseV1(v *events.APIGatewayProxyResponse) *SwitchableAPIGatewayResponse + func NewSwitchableAPIGatewayResponseV2(v *events.APIGatewayV2HTTPResponse) *SwitchableAPIGatewayResponse + func (s *SwitchableAPIGatewayResponse) MarshalJSON() ([]byte, error) + func (s *SwitchableAPIGatewayResponse) UnmarshalJSON(b []byte) error + func (s *SwitchableAPIGatewayResponse) Version1() *events.APIGatewayProxyResponse + func (s *SwitchableAPIGatewayResponse) Version2() *events.APIGatewayV2HTTPResponse