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

Function DiscoveredServersHandler

nats.go:1320–1325  ·  view source on GitHub ↗

DiscoveredServersHandler is an Option to set the new servers handler.

(cb ConnHandler)

Source from the content-addressed store, hash-verified

1318
1319// DiscoveredServersHandler is an Option to set the new servers handler.
1320func DiscoveredServersHandler(cb ConnHandler) Option {
1321 return func(o *Options) error {
1322 o.DiscoveredServersCB = cb
1323 return nil
1324 }
1325}
1326
1327// ErrorHandler is an Option to set the async error handler.
1328func ErrorHandler(cb ErrHandler) Option {

Callers 1

TestLameDuckModeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestLameDuckModeFunction · 0.68