Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayAdapter ¶
type GatewayAdapter struct { LambdaHandler LambdaHandler // contains filtered or unexported fields }
GatewayAdapter is an implementation of an API Gateway Websocket API that invokes an AWS Lambda function in-memory. It is a handler that upgrades requests to websockets and invokes an AWS Lambda handler on each message. It also provides API Gateway Management APIs for writing back to connections.
func (*GatewayAdapter) PostToConnectionWithContext ¶
func (a *GatewayAdapter) PostToConnectionWithContext(_ aws.Context, input *apigatewaymanagementapi.PostToConnectionInput, _ ...request.Option) (*apigatewaymanagementapi.PostToConnectionOutput, error)
func (*GatewayAdapter) ServeHTTP ¶
func (a *GatewayAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP upgrades the request from HTTP to WS and then continues to send and receive websocket messages over the connection.
type LambdaHandler ¶
type LambdaHandler func(context.Context, events.APIGatewayWebsocketProxyRequest) (events.APIGatewayProxyResponse, error)
Click to show internal directories.
Click to hide internal directories.