nats 0.9.0

A Rust NATS client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import "github.com/nats-io/nats.go"

func main() {
	_, err := nats.Connect(
		"localhost:4443", nats.Secure(),
		// nats.RootCAs("./tests/configs/certs2/ca.pem"),
		nats.ClientCert("./tests/configs/certs2/client-cert.pem", "./tests/configs/certs2/client-key.pem"),
	)
	if err != nil {
		panic(err)
	}
}