Mayfly.Runtime (Mayfly v0.1.0)
View SourceHandles communication with the AWS Lambda Runtime API. Provides functions for fetching invocations and sending responses.
Summary
Functions
Sends an initialization error to the Lambda Runtime API.
Sends an invocation error to the Lambda Runtime API.
Sends a successful response for a Lambda invocation.
Fetches the next invocation from the Lambda Runtime API. Returns {:ok, {protocol, headers, body}} on success or {:error, reason} on failure.
Returns the base service endpoint for the Lambda Runtime API.
Functions
Sends an initialization error to the Lambda Runtime API.
Sends an invocation error to the Lambda Runtime API.
Sends a successful response for a Lambda invocation.
Fetches the next invocation from the Lambda Runtime API. Returns {:ok, {protocol, headers, body}} on success or {:error, reason} on failure.
@spec service_endpoint() :: String.t()
Returns the base service endpoint for the Lambda Runtime API.