Skip to content

The HTTP Gateway provides an HTTP interface to NATS capabilities including key-value, object store, services, and messaging.

License

Notifications You must be signed in to change notification settings

gleez/nats-http-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nats-http-gateway

This is an open-source alternative to the Synadia Cloud's HTTP Gateway, offering a first-class HTTP interface for NATS. It provides HTTP access to NATS capabilities such as key-value stores, object storage, messaging, and services, making NATS even more accessible for developers familiar with HTTP.

Note: This project is a work in progress and currently does not provide any authentication mechanisms. Please use at your own risk.

For reference and detailed documentation, check out the Synadia Cloud HTTP Gateway documentation.

Usage

You can import the natshttp package and use it in your project, making sure that the Handler struct implements the NATS connection management.

Example:

import "github.com/gleez/nats-http-gateway"

// Initialize and use the handlers
h := natshttp.New(nc)
http.HandleFunc("/api/v1/nats/subjects/", h.NatsHandler)

Similar Projects

If you’re looking for other projects in the NATS HTTP Gateway space, be sure to check out:

hats: Another NATS HTTP gateway implementation, providing similar functionality for HTTP to NATS interaction. Kudos to RussellLuo for the great work!

About

The HTTP Gateway provides an HTTP interface to NATS capabilities including key-value, object store, services, and messaging.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages