PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
jobs_endpoints.cpp File Reference

Job management REST API and WebSocket endpoints implementation. More...

#include "crow.h"
#include "kcenon/pacs/client/job_manager.h"
#include "kcenon/pacs/client/job_types.h"
#include "kcenon/pacs/web/endpoints/jobs_endpoints.h"
#include "kcenon/pacs/web/endpoints/system_endpoints.h"
#include "kcenon/pacs/web/rest_config.h"
#include "kcenon/pacs/web/rest_types.h"
#include <chrono>
#include <mutex>
#include <shared_mutex>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
Include dependency graph for jobs_endpoints.cpp:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::web
 
namespace  kcenon::pacs::web::endpoints
 

Functions

void kcenon::pacs::web::endpoints::register_jobs_endpoints_impl (crow::SimpleApp &app, std::shared_ptr< rest_server_context > ctx)
 

Detailed Description

Job management REST API and WebSocket endpoints implementation.

See also
Issue #538 - Implement Job REST API & WebSocket Progress Streaming
Issue #558 - Part 1: Jobs REST API Endpoints (CRUD)
Issue #559 - Part 2: Jobs REST API Control Endpoints
Issue #560 - Part 3: Jobs WebSocket Progress Streaming

Definition in file jobs_endpoints.cpp.

Variable Documentation

◆ all_jobs_subscribers

std::unordered_set<crow::websocket::connection*> all_jobs_subscribers

Connections subscribed to all job updates.

Definition at line 61 of file jobs_endpoints.cpp.

◆ job_subscribers

std::unordered_map<std::string, std::unordered_set<crow::websocket::connection*> > job_subscribers

Connections subscribed to specific job progress.

Definition at line 58 of file jobs_endpoints.cpp.

◆ mutex