gatewayadapter

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 15 Imported by: 0

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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL