Cluster
Less than 1 minute
Cluster
- Full name:
\Hazaar\Warlock\Server\Cluster
Properties
peers
public \Hazaar\Warlock\Server\Client\Peer[] $peers
log
private \Hazaar\Warlock\Server\Logger $log
config
private \Hazaar\Map $config
Methods
__construct
public __construct(\Hazaar\Warlock\Server\Logger $log, \Hazaar\Map $config): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$log | \Hazaar\Warlock\Server\Logger | |
$config | \Hazaar\Map |
start
public start(): void
stop
public stop(): void
addPeer
public addPeer(array<string,string> $headers, \Hazaar\Warlock\Server\Client $client): void
Parameters:
Parameter | Type | Description |
---|---|---|
$headers | array<string,string> | |
$client | \Hazaar\Warlock\Server\Client |
removePeer
public removePeer(\Hazaar\Warlock\Server\Client\Peer $peer): void
Parameters:
Parameter | Type | Description |
---|---|---|
$peer | \Hazaar\Warlock\Server\Client\Peer |
process
public process(): void
Automatically generated on 2024-11-14