nats-io / stan.go

NATS Streaming System
https://nats.io
Apache License 2.0
706 stars 117 forks source link

[ADDED] NatsOptions to configure the NATS connection on stan.Connect() #355

Closed kozlovic closed 3 years ago

kozlovic commented 3 years ago

This allows users that don't want to create their own NATS connection to configured as desired, to pass the NATS options they would use to create the NATS connection. With that, the streaming connection will create and own the NATS connection but will be configured based on the provided NATS options, except for some options that are overridden by the library.

Resolve #354

Signed-off-by: Ivan Kozlovic ivan@synadia.com

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.2%) to 93.112% when pulling a53d804cffe1c79dd13ee4e1559e3e23ec2d898e on add_nats_opts into 1f563ca8c1b443f2cbe994ec83431a5bad430577 on master.