MCPcopy
hub / github.com/nats-io/nats.go / GetDefaultOptions

Function GetDefaultOptions

nats.go:163–178  ·  view source on GitHub ↗

GetDefaultOptions returns default configuration options for the client.

()

Source from the content-addressed store, hash-verified

161
162// GetDefaultOptions returns default configuration options for the client.
163func GetDefaultOptions() Options {
164 return Options{
165 AllowReconnect: true,
166 MaxReconnect: DefaultMaxReconnect,
167 ReconnectWait: DefaultReconnectWait,
168 ReconnectJitter: DefaultReconnectJitter,
169 ReconnectJitterTLS: DefaultReconnectJitterTLS,
170 Timeout: DefaultTimeout,
171 PingInterval: DefaultPingInterval,
172 MaxPingsOut: DefaultMaxPingOut,
173 SubChanLen: DefaultMaxChanLen,
174 ReconnectBufSize: DefaultReconnectBufSize,
175 DrainTimeout: DefaultDrainTimeout,
176 FlusherTimeout: DefaultFlusherTimeout,
177 }
178}
179
180// Deprecated: Use GetDefaultOptions() instead.
181// DefaultOptions is not safe for use by multiple clients.

Callers 15

TestWSNoMixingSchemeFunction · 0.85
TestWSTlsNoConfigFunction · 0.85
TestSimplifiedURLsFunction · 0.85
TestServersRandomizeFunction · 0.85
TestSelectNextServerFunction · 0.85
TestAsyncINFOFunction · 0.85
TestConnServersFunction · 0.85
TestNoEchoOldServerFunction · 0.85
TestWriteBufferSizeFunction · 0.85

Calls

no outgoing calls

Tested by 13

TestWSNoMixingSchemeFunction · 0.68
TestWSTlsNoConfigFunction · 0.68
TestSimplifiedURLsFunction · 0.68
TestServersRandomizeFunction · 0.68
TestSelectNextServerFunction · 0.68
TestAsyncINFOFunction · 0.68
TestConnServersFunction · 0.68
TestNoEchoOldServerFunction · 0.68
TestWriteBufferSizeFunction · 0.68