sgns::processing::TaskKeys¶
#include <TaskKeys.hpp>
Public Functions¶
| Name | |
|---|---|
| std::string | ProcessingPrefix() Returns the processing base prefix for the task queue. |
| std::string | ScopePrefix(const std::string & private_network_id) Returns the CRDT branch prefix for a private-network job scope. |
| std::string | ScopedTopic(std::string_view public_topic, const std::string & private_network_id) Derives a pubsub topic for a private-network job scope. |
| std::string | ScopedKeyPath(const std::string & private_network_id, std::string_view path) Prefixes a raw CRDT path with the private-network branch. |
| std::string | SubTaskResultKey(const std::string & private_network_id, std::string_view subTaskId) Builds the subtask-result key for a private-network job scope. |
| std::string | TaskListKey() |
| std::string | TaskListKey(const std::string & private_network_id) |
| std::string | SubTaskListKey() |
| std::string | SubTaskListKey(std::string_view taskId) |
| std::string | SubTaskListKey(const std::string & private_network_id, std::string_view taskId) |
| std::string | TaskKey(std::string_view taskId) |
| std::string | TaskKey(const std::string & private_network_id, std::string_view taskId) |
| std::string | SubTaskKey(std::string_view taskId, std::string_view subTaskId) |
| std::string | SubTaskKey(const std::string & private_network_id, std::string_view taskId, std::string_view subTaskId) |
| std::string | ClaimableListKey() |
| std::string | ClaimableListKey(const std::string & private_network_id) |
| std::string | ClaimableTaskKey(std::string_view taskId) |
| std::string | ClaimableTaskKey(const std::string & private_network_id, std::string_view taskId) |
| std::string | ResultTaskKey(std::string_view taskId) |
| std::string | ResultTaskKey(const std::string & private_network_id, std::string_view taskId) |
| std::string | LockKey(std::string_view taskKey) Builds a task-lock key. Scope-agnostic by design: taskKey already carries the network scope when produced by the scoped TaskKey overload. |
Public Functions Documentation¶
function ProcessingPrefix¶
Returns the processing base prefix for the task queue.
Return: "/<prefix_base
function ScopePrefix¶
Returns the CRDT branch prefix for a private-network job scope.
Parameters:
- private_network_id Private-network identity (0x-hex-32B); empty = public scope.
Return: Empty string for the public scope, "/chain/
function ScopedTopic¶
static inline std::string ScopedTopic(
std::string_view public_topic,
const std::string & private_network_id
)
Derives a pubsub topic for a private-network job scope.
Parameters:
- public_topic Public-network topic string.
- private_network_id Private-network identity; empty = public scope.
Return: public_topic unchanged when public, "
function ScopedKeyPath¶
static inline std::string ScopedKeyPath(
const std::string & private_network_id,
std::string_view path
)
Prefixes a raw CRDT path with the private-network branch.
Parameters:
- private_network_id Private-network identity; empty = public scope.
- path Raw key path (may or may not start with '/').
Return: path unchanged when public; "/chain/
function SubTaskResultKey¶
static inline std::string SubTaskResultKey(
const std::string & private_network_id,
std::string_view subTaskId
)
Builds the subtask-result key for a private-network job scope.
Parameters:
- private_network_id Private-network identity; empty = public scope.
- subTaskId Subtask identifier.
Return: "results/
function TaskListKey¶
function TaskListKey¶
function SubTaskListKey¶
function SubTaskListKey¶
function SubTaskListKey¶
static inline std::string SubTaskListKey(
const std::string & private_network_id,
std::string_view taskId
)
function TaskKey¶
function TaskKey¶
static inline std::string TaskKey(
const std::string & private_network_id,
std::string_view taskId
)
function SubTaskKey¶
function SubTaskKey¶
static inline std::string SubTaskKey(
const std::string & private_network_id,
std::string_view taskId,
std::string_view subTaskId
)
function ClaimableListKey¶
function ClaimableListKey¶
function ClaimableTaskKey¶
function ClaimableTaskKey¶
static inline std::string ClaimableTaskKey(
const std::string & private_network_id,
std::string_view taskId
)
function ResultTaskKey¶
function ResultTaskKey¶
static inline std::string ResultTaskKey(
const std::string & private_network_id,
std::string_view taskId
)
function LockKey¶
Builds a task-lock key. Scope-agnostic by design: taskKey already carries the network scope when produced by the scoped TaskKey overload.
Updated on 2026-10-15 at 17:15:11 +0000