Documentation ¶
Overview ¶
Package linelambda implements helper functions that make it easier to use the Line Bot Go SDK in AWS Lambda, as a serverless API function.
Line Bot Go SDK: https://github.com/line/line-bot-sdk-go/
Example code and an AWS SAM deployment template for a simple "echo" Line Bot are here: https://github.com/JamesJJ/line-bot-demo
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIEventToHTTPRequest ¶
func APIEventToHTTPRequest(event events.APIGatewayProxyRequest) (*http.Request, error)
Takes the `APIGatewayProxyRequest` event provided by AWS Lambda and returns a pointer to a http.Request that is compatible with the Line Bot SDK's `ParseRequest` function. https://pkg.go.dev/github.com/line/line-bot-sdk-go@v1.3.0/linebot#Client.ParseRequest
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.