scheduler canceling, sessiion query, didn't test yet!
This commit is contained in:
parent
544db92b6e
commit
5d765958e5
15 changed files with 166 additions and 21 deletions
|
@ -9,6 +9,13 @@
|
|||
#include <stdint.h>
|
||||
|
||||
namespace DB {
|
||||
struct Session {
|
||||
unsigned int id;
|
||||
unsigned int owner;
|
||||
std::string accessToken;
|
||||
std::string renewToken;
|
||||
};
|
||||
|
||||
class Interface {
|
||||
public:
|
||||
enum class Type {
|
||||
|
@ -40,6 +47,7 @@ public:
|
|||
virtual unsigned int registerAccount(const std::string& login, const std::string& hash) = 0;
|
||||
virtual std::string getAccountHash(const std::string& login) = 0;
|
||||
virtual unsigned int createSession(const std::string& login, const std::string& access, const std::string& renew) = 0;
|
||||
virtual Session findSession(const std::string& accessToken) = 0;
|
||||
|
||||
protected:
|
||||
Interface(Type type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue