examples/

directory
v0.0.0-...-7a23388 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT

README

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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