kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kdb
extensions
kDBRDFGraphSynchronisation
Messages.h
1
#pragma once
2
3
#include <knowCore/Timestamp.h>
4
#include <QUuid>
5
6
namespace
kDBRDFGraphSynchronisation
7
{
8
struct
Status
9
{
10
QString name;
11
QUuid uuid;
12
QByteArray publicKey;
13
QByteArray revisionHash;
14
QList<QByteArray>
heads;
15
bool
mergeMaster;
16
};
17
struct
Vote
18
{
19
// Uid for the agent that casted this vote
20
QUuid voter;
21
// Signature for the vote
22
QByteArray signature;
23
// Uid for the candidate
24
QUuid candidate;
25
// Leg for the election from 0 -> inf
26
int
leg;
28
knowCore::Timestamp
timestamp
;
30
knowCore::Timestamp
electionTime
;
31
};
32
struct
RevisionsRequest
33
{
34
QUuid requester;
35
QList<QByteArray>
hashes;
36
};
37
struct
Signature
38
{
39
QUuid author;
40
knowCore::Timestamp
timestamp;
41
QByteArray signature;
42
};
43
struct
Delta
44
{
45
QByteArray parent;
46
QByteArray hash;
47
QByteArray delta;
48
QList<Signature>
signatures;
49
};
50
struct
Revision
51
{
52
QByteArray hash, contentHash;
53
qint64 historicity;
54
QList<Delta>
deltas;
55
};
56
struct
Revisions
57
{
58
QList<Revision>
revisions;
59
};
60
}
QList
Definition
Revision.h:9
knowCore::Timestamp
Definition
Timestamp.h:39
kDBRDFGraphSynchronisation::Delta
Definition
Messages.h:44
kDBRDFGraphSynchronisation::Revision
Definition
Messages.h:51
kDBRDFGraphSynchronisation::RevisionsRequest
Definition
Messages.h:33
kDBRDFGraphSynchronisation::Revisions
Definition
Messages.h:57
kDBRDFGraphSynchronisation::Signature
Definition
Messages.h:38
kDBRDFGraphSynchronisation::Status
Definition
Messages.h:9
kDBRDFGraphSynchronisation::Vote
Definition
Messages.h:18
kDBRDFGraphSynchronisation::Vote::electionTime
knowCore::Timestamp electionTime
Time when the election was triggered.
Definition
Messages.h:30
kDBRDFGraphSynchronisation::Vote::timestamp
knowCore::Timestamp timestamp
Timestamp for the vote.
Definition
Messages.h:28
Generated by
1.12.0