Documentation ¶
Overview ¶
Package ngao (shield) is a reverse proxy that limits the maximum number of connections to an upstream host.
Usage:
Get the package
go get github.com/peteretelej/ngao
Import into your application:
import "github.com/peteretelej/ngao"
Set your configuration details, and run ngao:
func main() { c := &ngao.Config{ ListenAddr: ":9015", // your listen address e.g ":9010" Host: "etelej.com", // the backend server to reverseproxy Scheme: "https", // protocol scheme of backend host e.g. https, http TotalAllowed: 4, // Maximum client sessions allowed ClearInterval: 60 * 5, // Interval to clear older sessions (secs) } ngao.Run(c) } ngao.Run(c)
ngao was written by Peter Etelej <peter@etelej.com>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.