nats-http

command module
v0.0.0-...-8e94f2c Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

NATS-HTTP

Small example to show re-use of an HTTP handlerFunc for both HTTP and NATS. You can use a local NATS server or it will automatically use the demo server. If you use the demo server add -s demo.nats.io to the nats-req call below.

> go run main.go

In a separate terminal

> curl -i localhost:8080/foo
> nats-req foo hello

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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