Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpRequest ¶
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 (*Gateway) Serve ¶
func (gw *Gateway) Serve(ctx context.Context, req *events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
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
Click to show internal directories.
Click to hide internal directories.