Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A Go package for running an embedded NATS server.

License

Notifications You must be signed in to change notification settings

osapi-io/nats-server

release codecov go report card license build powered by conventional commits nats built with just gitHub commit activity

NATS Server

A Go package for running an embedded NATS server.

📦 Install

go get github.com/osapi-io/nats-server

✨ Features

See the server docs for quick start, authentication, and per-feature reference.

Feature Description Docs Source
Lifecycle management Non-blocking Start() / graceful Stop() with readiness docs server.go
slog integration Adapts slog.Logger to the NATS server logging interface docs logger.go
Configuration Options for host, port, store dir, auth, and timeouts docs types.go

📋 Examples

Each example is a standalone Go program you can read and run.

Example What it shows
auth-none Start a server without authentication
auth-user-pass Server with username/password auth
auth-nkeys Server with NKey authentication
simple-server Minimal server startup and shutdown

📖 Documentation

See the generated documentation for package-level API details.

🤝 Contributing

See the Development guide for prerequisites, setup, and conventions. See the Contributing guide before submitting a PR.

📄 License

The MIT License.

About

A Go package for running an embedded NATS server.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors