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

[docs]: update readme support list lambda #2

Merged
merged 2 commits into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ But now they come with Premium Plan (-__-!) and provide cloud services.
We are here with you, the next option of AWS, LocalStack._

## Feature

* Support for local development for RealAWS services.
* Become a Localstack alternative.
* Ready to live on production as a backup for RealAWS.

### Lambda

Just inject our fake lambda inside your code and you are ready to go.
It has the same interface as AWS Lambda but run in your code.

Supported Interface:

1. [x] `Invoke(input *InvokeInput) (*InvokeOutput, error)`
2. [ ] `InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error)` (in progress)
2. [x] InvokeWithContext(aws.Context, *lambda.InvokeInput, ...request.Option) (*lambda.InvokeOutput, error)
3. [ ] `InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error)` (in progress)

Sample code:
```go
Expand All @@ -37,8 +41,10 @@ Sample code:
_, err := GetServerless().Invoke(&real.InvokeInput{
FunctionName: &lambdaFn1Name,
})
if err != nil {
fmt.Printf("error when invoke lambda 1: %v", err)
return
}
```

Check the [example/lambda](example/lambda) folder for more information.


Loading