GoLang GearmanClient::addServers

request it (291)
GoLang replacement for PHP's GearmanClient::addServers [edit | history]

Do you know a GoLang replacement for PHP's GearmanClient::addServers? Write it!

PHP GearmanClient::addServers

PHP original manual for GearmanClient::addServers [ show | php.net ]


(PECL gearman >= 0.5.0)

GearmanClient::addServersAdd a list of job servers to the client


public bool GearmanClient::addServers ([ string $servers = ] )

Adds a list of job servers that can be used to run a task. No socket I/O happens here; the servers are simply added to the full list of servers.



A comma-separated list of servers, each server specified in the format 'host:port'.

Return Values

Returns TRUE on success or FALSE on failure.


Example #1 Add two job servers


# Create our client object.
$gmclient= new GearmanClient();

# Add multiple job servers, the first on the default 4730 port


See Also