Simon 271fc3d859 client is able to post msg from gui | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.vscode | %!s(int64=2) %!d(string=hai) anos | |
c | %!s(int64=2) %!d(string=hai) anos | |
client | %!s(int64=2) %!d(string=hai) anos | |
data | %!s(int64=2) %!d(string=hai) anos | |
follower | %!s(int64=2) %!d(string=hai) anos | |
leader | %!s(int64=2) %!d(string=hai) anos | |
lib | %!s(int64=2) %!d(string=hai) anos | |
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
comm | %!s(int64=2) %!d(string=hai) anos | |
comm.go | %!s(int64=2) %!d(string=hai) anos | |
go.mod | %!s(int64=2) %!d(string=hai) anos | |
go.sum | %!s(int64=2) %!d(string=hai) anos | |
index.html | %!s(int64=2) %!d(string=hai) anos | |
main.js | %!s(int64=2) %!d(string=hai) anos | |
package-lock.json | %!s(int64=2) %!d(string=hai) anos |
This is the source code following the bachelor thesis Anonymous Topic-Based PubSub Communication for Microblogging.
To execute you need to run follower.go, wait for print "start leader", then run leader.go, wait for 1sec and then start client.go The parameters used, like number of clients or the write database size, are global variables in the respective files.