Skip to content

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