Documentation
¶
Index ¶
- func ALBTargetResponse(w *ResponseWriter, multiValue bool) (r *events.ALBTargetGroupResponse, err error)
- func LambdaDetector() bool
- func NewALBTargetGroupRequest(ctx context.Context, e *events.ALBTargetGroupRequest) (r *http.Request, multiValue bool, err error)
- func NewHTTPAPIRequest(ctx context.Context, e *events.APIGatewayV2HTTPRequest) (r *http.Request, err error)
- func NewLambdaAdaptor(addr string, h http.Handler) types.Adaptor
- func NewLambdaHandler(h http.Handler) lambda.Handler
- func NewRESTAPIRequest(ctx context.Context, e *events.APIGatewayProxyRequest) (r *http.Request, multiValue bool, err error)
- func RESTAPITargetResponse(w *ResponseWriter, multiValue bool) (r *events.APIGatewayProxyResponse, err error)
- type APIGatewayV2HTTPResponse
- type LambdaAdaptor
- type LambdaHandler
- func (l LambdaHandler) Invoke(ctx context.Context, payload []byte) ([]byte, error)
- func (l LambdaHandler) InvokeALBTargetGroup(ctx context.Context, request *events.ALBTargetGroupRequest) (r *events.ALBTargetGroupResponse, err error)
- func (l LambdaHandler) InvokeHTTPAPI(ctx context.Context, e *events.APIGatewayV2HTTPRequest) (r *APIGatewayV2HTTPResponse, err error)
- func (l LambdaHandler) InvokeRESTAPI(ctx context.Context, e *events.APIGatewayProxyRequest) (r *events.APIGatewayProxyResponse, err error)
- type LambdaIntegrationType
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ALBTargetResponse ¶
func ALBTargetResponse(w *ResponseWriter, multiValue bool) (r *events.ALBTargetGroupResponse, err error)
func LambdaDetector ¶
func LambdaDetector() bool
func NewHTTPAPIRequest ¶
func NewRESTAPIRequest ¶
func RESTAPITargetResponse ¶
func RESTAPITargetResponse(w *ResponseWriter, multiValue bool) (r *events.APIGatewayProxyResponse, err error)
Types ¶
type APIGatewayV2HTTPResponse ¶
type APIGatewayV2HTTPResponse struct { StatusCode int `json:"statusCode"` Headers map[string]string `json:"headers"` Body string `json:"body"` IsBase64Encoded bool `json:"isBase64Encoded,omitempty"` }
func HTTPAPIResponse ¶
func HTTPAPIResponse(w *ResponseWriter) (r *APIGatewayV2HTTPResponse, err error)
type LambdaAdaptor ¶
type LambdaAdaptor struct {
// contains filtered or unexported fields
}
func (LambdaAdaptor) ListenAndServe ¶
func (l LambdaAdaptor) ListenAndServe() error
type LambdaHandler ¶
type LambdaHandler struct {
// contains filtered or unexported fields
}
func (LambdaHandler) InvokeALBTargetGroup ¶
func (l LambdaHandler) InvokeALBTargetGroup(ctx context.Context, request *events.ALBTargetGroupRequest) (r *events.ALBTargetGroupResponse, err error)
func (LambdaHandler) InvokeHTTPAPI ¶
func (l LambdaHandler) InvokeHTTPAPI(ctx context.Context, e *events.APIGatewayV2HTTPRequest) (r *APIGatewayV2HTTPResponse, err error)
func (LambdaHandler) InvokeRESTAPI ¶
func (l LambdaHandler) InvokeRESTAPI(ctx context.Context, e *events.APIGatewayProxyRequest) (r *events.APIGatewayProxyResponse, err error)
type LambdaIntegrationType ¶
type LambdaIntegrationType int
const ( UnknownLambdaIntegrationType LambdaIntegrationType = iota APIGatewayRESTIntegration APIGatewayHTTPIntegration ALBTargetGroupIntegration )
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
func NewResponseWriter ¶
func NewResponseWriter() *ResponseWriter
func (*ResponseWriter) CloseNotify ¶
func (r *ResponseWriter) CloseNotify() <-chan bool
func (*ResponseWriter) Done ¶
func (r *ResponseWriter) Done()
func (*ResponseWriter) Header ¶
func (r *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (r *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.