GoLang MongoDB\Driver\Monitoring\addSubscriber

request it (416)
GoLang replacement for PHP's MongoDB\Driver\Monitoring\addSubscriber [edit | history]



Do you know a GoLang replacement for PHP's MongoDB\Driver\Monitoring\addSubscriber? Write it!

PHP MongoDB\Driver\Monitoring\addSubscriber

PHP original manual for MongoDB\Driver\Monitoring\addSubscriber [ show | php.net ]

MongoDB\Driver\Monitoring\addSubscriber

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\addSubscriberRegisters a new monitoring event subscriber

Description

void MongoDB\Driver\Monitoring\addSubscriber ( MongoDB\Driver\Monitoring\Subscriber $subscriber )

Registers a new monitoring event subscriber with the driver. Registered subscribers will be notified of monitoring events through specific methods.

Note: If the object is already registered, this function is a no-op.

Parameters

subscriber (MongoDB\Driver\Monitoring\Subscriber)

A monitoring event subscriber object to register.

Return Values

No value is returned.

Errors/Exceptions