Awesome
<a id="top" name="top"></a> <img src="_asset/logo_powered-by-aws.png" alt="Powered by Amazon Web Services" align="right"> <img src="_asset/logo_created-by-eawsy.png" alt="Created by eawsy" align="right">
eawsy/aws-lambda-go-core
Type definitions and helpers for AWS Lambda Go runtime.
AWS Lambda lets you run code without provisioning or managing servers. With eawsy/aws-lambda-go-shim, you can author your Lambda function code in Go. This project provides type definitions and helpers to deal with AWS Lambda Go runtime.
Preview
For step by step instructions on how to author your AWS Lambda function code in Go, see eawsy/aws-lambda-go-shim.
go get -u -d github.com/eawsy/aws-lambda-go-core/...
package main
import (
"encoding/json"
"log"
"time"
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
)
func Handle(evt json.RawMessage, ctx *runtime.Context) (interface{}, error) {
log.Printf("Log stream name: %s\n", ctx.LogStreamName)
log.Printf("Log group name: %s\n", ctx.LogGroupName)
log.Printf("Request ID: %s\n", ctx.AWSRequestID)
log.Printf("Mem. limits(MB): %d\n", ctx.MemoryLimitInMB)
select {
case <-time.After(1 * time.Second):
log.Printf("Time remaining (MS): %d\n", ctx.RemainingTimeInMillis())
}
return nil, nil
}
<img src="_asset/misc_arrow-up.png" align="right">
About
This project is maintained and funded by Alsanium, SAS.
We :heart: AWS and open source software. See our other projects, or hire us to help you build modern applications on AWS.
<img src="_asset/misc_arrow-up.png" align="right">
Contact
We want to make it easy for you, users and contributers, to talk with us and connect with each others, to share ideas, solve problems and make help this project awesome. Here are the main channels we're running currently and we'd love to hear from you on them.
Follow and chat with us on Twitter.
Share stories!
Gitter
This is for all of you. Users, developers and curious. You can find help, links, questions and answers from all the community including the core team.
Ask questions!
GitHub
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through the eawsy/bavardage channel, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.
Write code!
<img src="_asset/misc_arrow-up.png" align="right">
License
This product is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this product except in compliance with the License. See LICENSE and NOTICE for more information.
<img src="_asset/misc_arrow-up.png" align="right">
Trademark
Alsanium, eawsy, the "Created by eawsy" logo, and the "eawsy" logo are trademarks of Alsanium, SAS. or its affiliates in France and/or other countries.
Amazon Web Services, the "Powered by Amazon Web Services" logo, and AWS Lambda are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.