Distributed Concurrent Editor

Artifact [c7151f4616]
Login

Artifact c7151f461643e8ce311cdbd5d070de553a7c59e6f67b5b0e97660e506b1ebdaf:


struct WordId {
	uint64 ClientId;
	uint64 Counter;
}

struct Version {
	uint64 Counter;
	uint64 ClientId;
}

struct Word {
	WordId WordId;
	Version Version;
	string Letters;
	Links Links;
}

message Links {
	1 -> WordId Previous;
	2 -> WordId Next;
}

message Message {
	1 -> Word[] Updates;
	2 -> bool Undo;
	3 -> bool Redo;
}