Skip to content

Commit

Permalink
SQS Support
Browse files Browse the repository at this point in the history
  • Loading branch information
proggeramlug committed Oct 23, 2021
1 parent 13de56d commit 51e5d64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/VaporAWSLambdaRuntime/LambdaServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public class LambdaServer: Server {
case apiGateway
case apiGatewayV2
case applicationLoadBalancer
case sqs
}

var requestSource: RequestSource
Expand Down Expand Up @@ -117,6 +118,8 @@ public class LambdaServer: Server {
handler = APIGatewayV2Handler(application: application, responder: responder)
case .applicationLoadBalancer:
handler = ALBHandler(application: application, responder: responder)
case .sqs:
handler = SQSHandler(application: application, responder: responder)
}

self.lambdaLifecycle = Lambda.Lifecycle(
Expand Down

0 comments on commit 51e5d64

Please sign in to comment.