mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
wip
This commit is contained in:
21
app/Contracts/ConnectionManager.php
Normal file
21
app/Contracts/ConnectionManager.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use App\Server\Connections\ControlConnection;
|
||||
use Ratchet\ConnectionInterface;
|
||||
|
||||
interface ConnectionManager
|
||||
{
|
||||
public function storeConnection(string $host, ?string $subdomain, ConnectionInterface $connection): ControlConnection;
|
||||
|
||||
public function storeHttpConnection(ConnectionInterface $httpConnection, $requestId): ConnectionInterface;
|
||||
|
||||
public function getHttpConnectionForRequestId(string $requestId): ?ConnectionInterface;
|
||||
|
||||
public function removeControlConnection($connection);
|
||||
|
||||
public function findControlConnectionForSubdomain($subdomain): ?ControlConnection;
|
||||
|
||||
public function findControlConnectionForClientId(string $clientId): ?ControlConnection;
|
||||
}
|
||||
8
app/Contracts/SubdomainGenerator.php
Normal file
8
app/Contracts/SubdomainGenerator.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
interface SubdomainGenerator
|
||||
{
|
||||
public function generateSubdomain(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user