[][src]Crate srvrls

srvrls - a lightweight serverless framework

CodeBuild test indicator

We built this library to simplify building applications that use AWS API Gateway as a proxy for AWS Lambda.

This library has opinions, strong ones, very possibly not your own. Our design priorities here are simple:

  • reduce needed boilerplate in serverless applications
  • provide opinionated defaults to otherwise open questions (more on this later)
  • provide decoupling between the serverless function provider and the application logic (keeping open the option of supporting Google or Azure functions in the future)

Modules

application

Application provides the AWS Lambda wrapper and response handling.

components

Components holds the utility structs including the library error SrvrlsError.

request

Request provides a simplified input request struct with opinionated getter methods.

response

Response provides the mappings from the library response and error to AWS Lambda events.