Ridge

AWS Lambda HTTP Proxy integration event bridge to Go net/http.
Alternatives To Ridge
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Geyser3,797
2 days ago345mitJava
A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
Websockify3,369298624 days ago10July 22, 202124lgpl-3.0Python
Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service.
Fuso1,316
2 months ago11gpl-3.0Rust
一款体积小, 快速, 稳定, 高效, 轻量的内网穿透, 端口转发工具 支持多连接,级联代理,传输加密 (A small volume, fast, stable, efficient, and lightweight intranet penetration, port forwarding tool supports multiple connections, cascading proxy, and transmission encryption)
Ws Tcp Relay164
2 years ago4mitGo
A simple relay between WebSocket clients and TCP servers
Tor Ip Changer161
a year ago1gpl-3.0Python
request new identity every X seconds interval using TOR client
Ari145421 days ago3August 27, 202129apache-2.0Go
Golang Asterisk REST Interface (ARI) library
Fraud Bridge139
2 months agootherC++
ICMP and DNS tunneling via IPv4 and IPv6
100 Words Design Patterns Java138
a year ago16mitJava
GoF Design Patterns, each pattern described with story from real life.
Winssh Pageant133
3 months agobsd-3-clauseGo
Bridge to Windows OpenSSH agent from Pageant. This means the openssh agent has the keys and this proxies pageant requests to it.
Onionfruit122
6 months ago5other
OnionFruit™ Connect - Tor access client with country selection, bridge configuration, pluggable transports and experimental DNS support
Alternatives To Ridge
Select To Compare


Alternative Project Comparisons
Readme

ridge

AWS Lambda HTTP Proxy integration event bridge to Go net/http.

Example

ridge is a bridge to convert API Gateway with Lambda Proxy Integration request/response and net/http.Request and net/http.ResponseWriter.

  • API Gateway with Lambda Proxy Integration through a Proxy Resource
package main

import (
	"fmt"
	"net/http"

	"github.com/fujiwara/ridge"
)

func main() {
	var mux = http.NewServeMux()
	mux.HandleFunc("/", handleRoot)
	mux.HandleFunc("/hello", handleHello)
	ridge.Run(":8080", "/", mux)
}

func handleHello(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "text/plain")
	fmt.Fprintf(w, "Hello %s\n", r.FormValue("name"))
}

func handleRoot(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "text/plain")
	fmt.Fprintln(w, "Hello World")
	fmt.Fprintln(w, r.URL)
}
  1. Create IAM role "ridge" for Lambda which have attached policy AWSLambdaBasicExecutionRole.
  2. Install lambroll.
  3. Place main.go to example/.
  4. Run make deploy to deploy a lambda function.
  5. Create API Gateway with the lambda function.

ridge.Run(address, prefix, handler)

ridge.Run(address, prefix, handler) works as below.

  • If a process is running on Lambda (AWS_EXECUTION_ENV or AWS_LAMBDA_RUNTIME_API environment variable defined),
    • Call lambda.Start()
  • Otherwise start a net/http server using prefix and address.

LICENSE

The MIT License (MIT)

Copyright (c) 2016- FUJIWARA Shunichiro

Popular Bridge Projects
Popular Proxy Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Go
Golang
Aws
Http
Proxy
Lambda
Gateway
Bridge
Api Gateway