This package allows you to write an Amazon API Gateway custom authorizer that provide control access to your API methods.
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-event/...
package main
import (
"log"
"github.com/eawsy/aws-lambda-go-event/service/lambda/runtime/event/apigatewayauthorizerevt"
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
)
func Handle(evt *apigatewayauthorizerevt.Event, ctx *runtime.Context) (interface{}, error) {
log.Println(evt)
return nil, nil
}