Endpoint specification
An endpoint contains the server location the client connects to the following endpoint types are currently supported (more to be added later):
Note: SSL support is added in ArangoDB server 1.1
package | ArangoDBClient |
---|---|
since | 0.2 |
__construct(string $value)
string
\ArangoDBClient\ClientException |
---|
__toString() : string
magic |
---|
string
- string representation of the endpointgetHost(string $value) : string
string
string
- host namegetType(string $value) : string
string
string
- endpoint typeisValid($value) : boolean
boolean
- true if endpoint specification is valid, false otherwiselistEndpoints(\ArangoDBClient\Connection $connection) : array
This will list the endpoints that are configured on the server
link | https://docs.arangodb.com/HTTP/Endpoints/index.html |
---|
\ArangoDBClient\Connection
\ArangoDBClient\Exception |
---|
array
$responseArray - The response array.normalize(string $value) : string
string
string
- normalized endpoint stringnormalizeHostname(string $hostname) : string
string
string
- normalized hostname$_value : string
ENTRY_DATABASES = 'databases'
ENTRY_ENDPOINT = 'endpoint'
REGEXP_SSL = '/^(ssl|https):\/\/(.+?):(\d+)\/?$/'
REGEXP_TCP = '/^(tcp|http):\/\/(.+?):(\d+)\/?$/'
REGEXP_UNIX = '/^unix:\/\/(.+)$/'
TYPE_SSL = 'ssl'
TYPE_TCP = 'tcp'
TYPE_UNIX = 'unix'