Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerAdapter ¶
type HandlerAdapter struct { core.RequestAccessor // contains filtered or unexported fields }
func New ¶
func New(handler http.Handler) *HandlerAdapter
func (*HandlerAdapter) Proxy ¶
func (h *HandlerAdapter) Proxy(event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Proxy receives an API Gateway proxy event, transforms it into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.Handler.
func (*HandlerAdapter) ProxyWithContext ¶
func (h *HandlerAdapter) ProxyWithContext(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
ProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the http.Handler for routing. It returns a proxy response object generated from the http.ResponseWriter.
type HandlerAdapterALB ¶
type HandlerAdapterALB struct { core.RequestAccessorALB // contains filtered or unexported fields }
func NewALB ¶
func NewALB(handler http.Handler) *HandlerAdapterALB
func (*HandlerAdapterALB) Proxy ¶
func (h *HandlerAdapterALB) Proxy(event events.ALBTargetGroupRequest) (events.ALBTargetGroupResponse, error)
Proxy receives an ALB Target Group proxy event, transforms it into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.ResponseWriter.
func (*HandlerAdapterALB) ProxyWithContext ¶
func (h *HandlerAdapterALB) ProxyWithContext(ctx context.Context, event events.ALBTargetGroupRequest) (events.ALBTargetGroupResponse, error)
ProxyWithContext receives context and an ALB proxy event, transforms them into an http.Request object, and sends it to the http.Handler for routing. It returns a proxy response object generated from the http.ResponseWriter.
type HandlerAdapterV2 ¶
type HandlerAdapterV2 struct { core.RequestAccessorV2 // contains filtered or unexported fields }
func NewV2 ¶
func NewV2(handler http.Handler) *HandlerAdapterV2
func (*HandlerAdapterV2) Proxy ¶
func (h *HandlerAdapterV2) Proxy(event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
Proxy receives an API Gateway proxy event, transforms it into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.ResponseWriter.
func (*HandlerAdapterV2) ProxyWithContext ¶
func (h *HandlerAdapterV2) ProxyWithContext(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
ProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the http.Handler for routing. It returns a proxy response object generated from the http.ResponseWriter.