Documentation
¶
Index ¶
- func BufferedResponse(ctx context.Context) *events.LambdaFunctionURLResponse
- func Request(ctx context.Context) *events.LambdaFunctionURLRequest
- func StartBuffered(handler http.Handler, options ...awslambda.Option)
- func StartStream(r http.Handler, options ...lambda.Option)
- func StreamResponse(ctx context.Context) *events.LambdaFunctionURLStreamingResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufferedResponse ¶
func BufferedResponse(ctx context.Context) *events.LambdaFunctionURLResponse
BufferedResponse returns the pending events.LambdaFunctionURLResponse from context.
If the gin handlers passed to StartBuffered or StartStream need access to the pending response, it can be retrieved from context with this method.
func Request ¶
func Request(ctx context.Context) *events.LambdaFunctionURLRequest
Request returns the original events.LambdaFunctionURLRequest from context.
If the gin handlers passed to StartBuffered or StartStream need access to the original invocation, it can be retrieved from context with this method.
func StartBuffered ¶
StartBuffered starts the Lambda loop in BUFFERED mode with the given handler.
gin.Engine satisfies http.Handler so you should pass one here.
func StartStream ¶
StartStream starts the Lambda loop in STREAM_RESPONSE mode with the given handler.
gin.Engine satisfies http.Handler so you should pass one here.
func StreamResponse ¶
func StreamResponse(ctx context.Context) *events.LambdaFunctionURLStreamingResponse
StreamResponse returns the pending events.LambdaFunctionURLStreamingResponse from context.
If the gin handlers passed to StartBuffered or StartStream need access to the pending response, it can be retrieved from context with this method.
Types ¶
This section is empty.