Skip to content

Commit

Permalink
Merge pull request #3 from Evernorth/feature/docs-update
Browse files Browse the repository at this point in the history
documentation updates
  • Loading branch information
stevensefton authored Oct 24, 2024
2 parents 68744b1 + b9aa098 commit f0ca39e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ All notable changes to this project will be documented in this file.
We follow the [Semantic Versioning 2.0.0](http://semver.org/) format.


## 1.0.0-2024-10-02
## v1.0.1 2024-10-24
Updated documentation

## v1.0.0 2024-10-02

Initial Release

Expand Down
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# aws-lambda-go-adapter

[![Go Report Card](https://goreportcard.com/badge/github.com/Evernorth/aws-lambda-go-adapter)](https://goreportcard.com/report/github.com/Evernorth/aws-lambda-go-adapter)
[![GoDoc](https://godoc.org/github.com/Evernorth/aws-lambda-go-adapter?status.svg)](https://godoc.org/github.com/Evernorth/aws-lambda-go-adapter)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Release](https://img.shields.io/github/v/release/Evernorth/aws-lambda-go-adapter)](https://github.com/Evernorth/aws-lambda-go-adapter/releases)

## Description
This module makes it easy to test a Golang AWS Lambda outside of AWS, without needing Docker. Currently,
only HTTP triggers are supported, but additional triggers may be supported in the future.

## How it works
### How it works
Lambda Function in AWS:
1. The main function calls the lambda.Start function, passing in the Handler function.
2. AWS Lambda invokes the Handler function when an HTTP request is received.
Expand All @@ -13,15 +20,16 @@ Testing a Lambda Function outside of AWS:
2. The httpadapter listens for incoming HTTP requests on the specified port and invokes the Handler function when a request is received.
![diagram2](docs/images/diagram2.png)

## Installation
```go get -u github.com/Evernorth/aws-lambda-go-adapter```


## Features
* Supports APIGatewayV2HTTP, APIGatewayProxy, and ALBTargetGroup events.
* Supports handler functions with and without context.Context parameters.
* Supports both values and pointers for handler function request events.
* Supports both values and pointers for handler function response events.

## Installation
```go get -u github.com/Evernorth/aws-lambda-go-adapter```

## Usage
```
package main
Expand Down
5 changes: 5 additions & 0 deletions httpadapter/httpadapter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
Package httpadapter makes it easy to test a Golang AWS Lambda outside of AWS, without needing Docker, by providing HTTP trigger support.
See documentation: https://pkg.go.dev/github.com/Evernorth/aws-lambda-go-adapter
*/
package httpadapter

import (
Expand Down

0 comments on commit f0ca39e

Please sign in to comment.