mirror of
https://github.com/bitinflow/expose.git
synced 2026-10-31 20:59:09 +00:00
Add statistic tracking
This commit is contained in:
1 parent
7f6be8cae2
commit
9444d1aacb
15 files changed
+308
-7
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
interface StatisticsCollector
|
||||
{
|
||||
public function siteShared($authToken = null);
|
||||
|
||||
public function portShared($authToken = null);
|
||||
|
||||
public function incomingRequest();
|
||||
|
||||
public function flush();
|
||||
|
||||
public function save();
|
||||
|
||||
public function shouldCollectStatistics(): bool;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
interface StatisticsRepository
|
||||
{
|
||||
public function getStatistics($from, $until): PromiseInterface;
|
||||
}
|
||||
@@ -19,4 +19,6 @@ interface UserRepository
|
||||
public function deleteUser($id): PromiseInterface;
|
||||
|
||||
public function getUsersByTokens(array $authTokens): PromiseInterface;
|
||||
|
||||
public function updateLastSharedAt($id): PromiseInterface;
|
||||
}
|
||||
Reference in new issue
Block a user