blob: bc0ae043cfd40abb02f04d20869ff320cebf2f91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* High-performance PHP process supervisor and load balancer written in Go.
*
* @author Wolfy-J
*/
declare(strict_types=1);
namespace Spiral\RoadRunner;
use Spiral\RoadRunner\Exception\EnvironmentException;
/**
* Provides base values to configure roadrunner worker.
*/
interface EnvironmentInterface
{
/**
* Returns worker mode assigned to the PHP process.
*
* @return string
* @throws EnvironmentException
*/
public function getMode(): string;
/**
* Address worker should be connected to (or pipes).
*
* @return string
* @throws EnvironmentException
*/
public function getRelayAddress(): string;
/**
* RPC address.
*
* @return string
* @throws EnvironmentException
*/
public function getRPCAddress(): string;
}
|