mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 13:19:09 +00:00
Allow users to specify custom hostnames
This commit is contained in:
1 parent
5b7a80bb0c
commit
cec52c4229
28 files changed
+913
-63
No files matched your search
@@ -8,7 +8,7 @@ use Ratchet\ConnectionInterface;
|
||||
|
||||
interface ConnectionManager
|
||||
{
|
||||
public function storeConnection(string $host, ?string $subdomain, ConnectionInterface $connection): ControlConnection;
|
||||
public function storeConnection(string $host, ?string $subdomain, ?string $hostname, ConnectionInterface $connection): ControlConnection;
|
||||
|
||||
public function storeTcpConnection(int $port, ConnectionInterface $connection): ControlConnection;
|
||||
|
||||
@@ -22,6 +22,8 @@ interface ConnectionManager
|
||||
|
||||
public function findControlConnectionForSubdomain($subdomain): ?ControlConnection;
|
||||
|
||||
public function findControlConnectionForHostname(string $hostname): ?ControlConnection;
|
||||
|
||||
public function findControlConnectionForClientId(string $clientId): ?ControlConnection;
|
||||
|
||||
public function getConnections(): array;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
interface HostnameRepository
|
||||
{
|
||||
public function getHostnames(): PromiseInterface;
|
||||
|
||||
public function getHostnameById($id): PromiseInterface;
|
||||
|
||||
public function getHostnameByName(string $name): PromiseInterface;
|
||||
|
||||
public function getHostnamesByUserId($id): PromiseInterface;
|
||||
|
||||
public function getHostnamesByUserIdAndName($id, $name): PromiseInterface;
|
||||
|
||||
public function deleteHostnameForUserId($userId, $hostnameId): PromiseInterface;
|
||||
|
||||
public function storeHostname(array $data): PromiseInterface;
|
||||
}
|
||||
Reference in new issue
Block a user