2018-01-05 20:18:00 +01:00
|
|
|
package nats
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/micro/go-micro/broker"
|
2019-01-26 13:37:58 +03:00
|
|
|
nats "github.com/nats-io/go-nats"
|
2018-01-05 20:18:00 +01:00
|
|
|
)
|
|
|
|
|
2018-01-06 13:10:43 +01:00
|
|
|
type optionsKey struct{}
|
2018-01-05 20:18:00 +01:00
|
|
|
|
2018-01-06 15:19:15 +00:00
|
|
|
// Options accepts nats.Options
|
|
|
|
func Options(opts nats.Options) broker.Option {
|
2019-01-26 13:37:58 +03:00
|
|
|
return setBrokerOption(optionsKey{}, opts)
|
2018-01-05 20:18:00 +01:00
|
|
|
}
|