Examples
Echo
go run ./examples/echo -p conf/connaxis.conf
TLS Echo
go run ./examples/tls_echo -p conf/connaxisssl.conf
HTTP
go run ./examples/http -p conf/connaxis.conf
Optional flags:
-workers N http worker count (default: GOMAXPROCS)
-queue N http job queue size
HTTP + WebSocket
go run ./examples/httpws -p conf/connaxis.conf
Optional flags:
-workers N http worker count (default: GOMAXPROCS)
-queue N http job queue size
Test HTTP:
curl -v http://127.0.0.1:5000/
Test WebSocket (either):
websocat ws://127.0.0.1:5000/
wscat -c ws://127.0.0.1:5000/
TCP + HTTP + WebSocket
go run ./examples/tcphttpws -p conf/connaxis.conf
Optional flags:
-workers N http worker count (default: GOMAXPROCS)
-queue N http job queue size
Test HTTP:
curl -v http://127.0.0.1:5000/
Test WebSocket:
websocat ws://127.0.0.1:5000/
Test TCP:
nc 127.0.0.1 5000
FastHTTP
go run ./examples/fasthttp -p conf/connaxis.conf
Optional flags:
-workers N http worker count (default: GOMAXPROCS)
-queue N http job queue size
WebSocket
go run ./examples/websocket -p conf/connaxis.conf
Prometheus
go run ./examples/prometheus -p conf/connaxis.conf -metrics :2112