mirror of
https://github.com/bitinflow/expose.git
synced 2026-10-31 20:59:09 +00:00
wip
This commit is contained in:
1 parent
1f8865145f
commit
e5e53b8b68
41 files changed
+1593
-915
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
interface SubdomainGenerator
|
||||
{
|
||||
public function generateSubdomain(): string;
|
||||
}
|
||||
Reference in new issue
Block a user