Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce LambdaRuntimeClientProtocol #344

Merged

Conversation

aryan-25
Copy link
Contributor

Motivation:

To start implementing the v2 API (#339), we first want to introduce the LambdaRuntimeClientProtocol. Objects conforming to this protocol can then be used with LambdaRuntime.

Modifications:

  • Introduced LambdaRuntimeClientProtocol and the associated LambdaResponseStreamWriter protocol.
  • Renamed the existing Invocation struct to InvocationMetadata since it does not contain the actual invocation event data itself.
  • Added an Invocation struct which contains InvocationMetadata and ByteBuffer.

Result:

LambdaRuntime can be tested more easily through a mock client conforming to LambdaRuntimeClientProtocol.

@fabianfett fabianfett merged commit 0f68ed5 into swift-server:main Aug 28, 2024
10 of 13 checks passed
@aryan-25 aryan-25 mentioned this pull request Aug 29, 2024
@fabianfett fabianfett added this to the 2.0 milestone Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants