Cluster
Less than 1 minute
Cluster
Properties
peers
public array $peers
log
private Logger $log
config
private array $config
Methods
__construct
public __construct(Logger $log, array $config): void
Parameters
Parameter | Type | Description |
---|---|---|
$log | Logger | |
$config | array |
start
public start(): void
stop
public stop(): void
addPeer
public addPeer(array $headers, Client $client): void
Parameters
Parameter | Type | Description |
---|---|---|
$headers | array | |
$client | Client |
removePeer
public removePeer(Peer $peer): void
Parameters
Parameter | Type | Description |
---|---|---|
$peer | Peer |
process
public process(): void
Generated by Hazaar API Doc Generator