Embedded NATS Broker (#1110)

* if the address is produced by a default route don't hash it

* embedded nats

* fix url parsing

* don't override help

* add ready flag
This commit is contained in:
Asim Aslam
2020-01-14 13:23:16 +00:00
committed by GitHub
parent b699d969e4
commit 1d311ab457
10 changed files with 308 additions and 41 deletions

View File

@@ -13,6 +13,8 @@ type Options struct {
Secure bool
Codec codec.Marshaler
TLSConfig *tls.Config
// Registry used for clustering
Registry registry.Registry
// Other options for implementations of the interface
// can be stored in a context
Context context.Context
@@ -92,7 +94,7 @@ func Queue(name string) SubscribeOption {
func Registry(r registry.Registry) Option {
return func(o *Options) {
o.Context = context.WithValue(o.Context, registryKey, r)
o.Registry = r
}
}