mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-14 22:15:55 +00:00
Allow users to specify custom hostnames
This commit is contained in:
22
app/Contracts/HostnameRepository.php
Normal file
22
app/Contracts/HostnameRepository.php
Normal file
@@ -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