Restored "GET /1/summary" endpoint.
This commit is contained in:
parent
691b2fabbf
commit
d9164c0b7b
14 changed files with 199 additions and 108 deletions
|
@ -65,10 +65,13 @@ protected:
|
|||
void onJobResult(const JobResult &result) override;
|
||||
void onLogin(IStrategy *strategy, IClient *client, rapidjson::Document &doc, rapidjson::Value ¶ms) override;
|
||||
void onPause(IStrategy *strategy) override;
|
||||
void onRequest(IApiRequest &request) override;
|
||||
void onResultAccepted(IStrategy *strategy, IClient *client, const SubmitResult &result, const char *error) override;
|
||||
void onVerifyAlgorithm(IStrategy *strategy, const IClient *client, const Algorithm &algorithm, bool *ok) override;
|
||||
|
||||
# ifdef XMRIG_FEATURE_API
|
||||
void onRequest(IApiRequest &request) override;
|
||||
# endif
|
||||
|
||||
private:
|
||||
constexpr static int kTickInterval = 1 * 1000;
|
||||
|
||||
|
@ -76,8 +79,8 @@ private:
|
|||
void tick();
|
||||
|
||||
# ifdef XMRIG_FEATURE_API
|
||||
void getConnection(rapidjson::Value &reply, rapidjson::Document &doc) const;
|
||||
void getResults(rapidjson::Value &reply, rapidjson::Document &doc) const;
|
||||
void getConnection(rapidjson::Value &reply, rapidjson::Document &doc, int version) const;
|
||||
void getResults(rapidjson::Value &reply, rapidjson::Document &doc, int version) const;
|
||||
# endif
|
||||
|
||||
Controller *m_controller;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue