micro-broker-nats/options.go
Vasiliy Tolstov ae10eb2ab8 propagate context and SuccessAutoAck option other brokers
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 18:14:34 +03:00

14 lines
249 B
Go

package nats
import (
"github.com/micro/go-micro/broker"
nats "github.com/nats-io/go-nats"
)
type optionsKey struct{}
// Options accepts nats.Options
func Options(opts nats.Options) broker.Option {
return setBrokerOption(optionsKey{}, opts)
}