gateway

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpRequest

func NewHttpRequest(ctx context.Context, r *events.APIGatewayProxyRequest) (*http.Request, error)

NewHttpRequest converts API Gateway proxy request to standard HTTP request

Types

type Controller

type Controller interface {
	ServeHTTP(w http.ResponseWriter, req *http.Request)
}

Control plane of JSON-RPC Gateway

type Gateway

type Gateway struct {
	// contains filtered or unexported fields
}

Serverless JSON-RPC Gateway. The gateway translates AWS API Gateway calls into HTTP requests understood by MCP JSON-RPC server and routes them to different lambda functions.

func New

func New(ctrl Controller) *Gateway

Create new JSON-RPC Serverless Gateway

func (*Gateway) Serve

Serve handles incoming API Gateway requests and routes them to MCP JSON-RPC server.

type ResponseWriter

type ResponseWriter interface {
	http.ResponseWriter
	Value() *events.APIGatewayProxyResponse
}

func NewHttpResponse

func NewHttpResponse() ResponseWriter

Create HTTP response writer compatible with API Gateway

Jump to

Keyboard shortcuts

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