To run the lambda locally
_LAMBDA_SERVER_PORT=8001 go run wavefront_handler.go
To invoke the lambda
package main
import (
"github.com/djhworld/go-lambda-invoke/golambdainvoke"
)
func main() {
response, err := golambdainvoke.Run(8001, "payload")
if err != nil {
fmt.Println(err)
}
fmt.Println(response)
}